push
github
162 of 364 branches covered (44.51%)
Branch coverage included in aggregate %.
634 of 951 new or added lines in 72 files covered. (66.67%)
4 existing lines in 4 files now uncovered.658 of 982 relevant lines covered (67.01%)
20.4 hits per line
| 1 |
using System.Text;
|
|
| 2 |
|
|
| 3 |
namespace Test.Core;
|
|
| 4 |
|
|
| 5 |
public class MailingAddress |
|
| 6 |
{
|
|
|
NEW
|
public ContactType Type { get; set; }
|
× |
|
NEW
|
public string Address1 { get; set; } |
× |
|
NEW
|
public string Address2 { get; set; } |
× |
|
NEW
|
public string Address3 { get; set; } |
× |
|
NEW
|
public string City { get; set; } |
× |
|
NEW
|
public string State { get; set; } |
× |
|
NEW
|
public string Zip { get; set; } |
× |
| 14 |
|
|
| 15 |
|
|
| 16 |
public override string ToString() |
|
| 17 |
{
|
|
|
NEW
|
var b = new StringBuilder();
|
× |
|
NEW
|
if (Address1 != null)
|
|
|
NEW
|
b.Append(Address1) |
× |
|
NEW
|
.Append(", ");
|
× |
| 22 |
|
|
|
NEW
|
if (City != null)
|
|
|
NEW
|
b.Append(City) |
× |
|
NEW
|
.Append(", ");
|
× |
| 26 |
|
|
| 27 |
|
|
|
NEW
|
if (State != null)
|
|
|
NEW
|
b.Append(State) |
× |
|
NEW
|
.Append(" ");
|
× |
| 31 |
|
|
|
NEW
|
if (Zip != null)
|
|
|
NEW
|
b.Append(Zip); |
× |
| 34 |
|
|
|
NEW
|
return b.ToString();
|
× |
| 36 |
} |
|
| 37 |
} |