github
366 of 541 branches covered (67.65%)
Branch coverage included in aggregate %.
782 of 916 new or added lines in 19 files covered. (85.37%)
2264 existing lines in 22 files now uncovered.862 of 3387 relevant lines covered (25.45%)
2126.66 hits per line
1 |
namespace SatisfactoryTree.Models |
|
2 |
{ |
|
3 |
public class NewBuilding |
|
4 |
{ |
|
|
public NewBuilding(string name) |
284✔ |
|
{ |
284✔ |
|
Name = name; |
284✔ |
|
} |
284✔ |
9 |
|
|
|
public string Name { get; set; } |
3,726✔ |
11 |
|
|
12 |
public override bool Equals(object? obj) |
|
|
{ |
1,710✔ |
|
if (obj is NewBuilding otherBuilding)
|
|
|
{ |
1,710✔ |
|
return Name == otherBuilding.Name;
|
1,710✔ |
17 |
} |
|
NEW
|
return false; |
× |
|
} |
1,710✔ |
20 |
|
|
21 |
public override int GetHashCode() |
|
NEW
|
{ |
× |
NEW
|
return Name.GetHashCode();
|
× |
NEW
|
} |
× |
25 |
} |
|
26 |
} |