Removed incomplete tests
MODIFY
src/Chapter09.Tests/Listing09.04.DeclaringRecordClass.Tests.cs
src/Chapter09.Tests/Listing09.04.DeclaringRecordClass.Tests.cs
@@ -6,13 +6,6 @@ using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public partial class CoordinateTests
{
- [TestMethod]
- public void Create_Coordinate_IsReadOnly()
- {
- _ = new Coordinate(
- new Angle(180, 0, 0), new Angle(180, 0, 0));
- }
-
[TestMethod]
public void With_Coordinate_IsReadOnly()
{

MODIFY
src/Chapter09.Tests/Listing09.08.CustomizingARecord.Tests.cs
src/Chapter09.Tests/Listing09.08.CustomizingARecord.Tests.cs
@@ -3,9 +3,6 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_08.Tests;
[TestClass]
public class AngleTests
{
- [TestMethod]
- public void Title_Null_ThrowsArgumentNullException() => _ = new Angle(0,0,0);
-
[TestMethod]
public void ToString_90Degrees_90DegreesFormatted()
{

MODIFY
src/Chapter10.Tests/Listing10.01.ImplementingTheEqualsAndNotEqualsOperators.Tests.cs
src/Chapter10.Tests/Listing10.01.ImplementingTheEqualsAndNotEqualsOperators.Tests.cs
@@ -28,6 +28,7 @@ public class ProductSerialNumberTests
}
[TestMethod]
+ [Ignore("Switch to use records")]
public void Equals_GivenNull_NotEqual()
{
ProductSerialNumber productSerialNumber1 = new("12", 11, 11001);
@@ -38,6 +39,7 @@ public class ProductSerialNumberTests
}
[TestMethod]
+ [Ignore("Switch to use records")]
public void Equals_GivenSameReference_Equal()
{
ProductSerialNumber productSerialNumber1 = new("12", 11, 11001);
@@ -47,6 +49,7 @@ public class ProductSerialNumberTests
}
[TestMethod]
+ [Ignore("Switch to use records")]
public void Equals_GivenDifferentTypes_NotEqual()
{
ProductSerialNumber productSerialNumber1 = new("12", 11, 11001);

Removed incomplete tests