Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsSoilLayer2DTest.cs =================================================================== diff -u -r81f24a37267276f3169746471998361272d68b4c -r686c5eeaad900a6bb627733de8c21bd607f130aa --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsSoilLayer2DTest.cs (.../MacroStabilityInwardsSoilLayer2DTest.cs) (revision 81f24a37267276f3169746471998361272d68b4c) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/MacroStabilityInwardsSoilLayer2DTest.cs (.../MacroStabilityInwardsSoilLayer2DTest.cs) (revision 686c5eeaad900a6bb627733de8c21bd607f130aa) @@ -71,7 +71,7 @@ TestDelegate test = () => new MacroStabilityInwardsSoilLayer2D(null, holes, new MacroStabilityInwardsSoilLayerData(), - Enumerable.Empty()); + Enumerable.Empty()); // Assert var exception = Assert.Throws(test); @@ -110,7 +110,7 @@ TestDelegate test = () => new MacroStabilityInwardsSoilLayer2D(outerRing, null, new MacroStabilityInwardsSoilLayerData(), - Enumerable.Empty()); + Enumerable.Empty()); // Assert var exception = Assert.Throws(test); @@ -129,7 +129,7 @@ }; // Call - TestDelegate test = () => new MacroStabilityInwardsSoilLayer2D(outerRing, holes, null, Enumerable.Empty()); + TestDelegate test = () => new MacroStabilityInwardsSoilLayer2D(outerRing, holes, null, Enumerable.Empty()); // Assert var exception = Assert.Throws(test); @@ -170,8 +170,7 @@ var layer = new MacroStabilityInwardsSoilLayer2D(outerRing, holes); // Assert - Assert.IsInstanceOf(layer); - Assert.NotNull(layer); + Assert.IsInstanceOf(layer); Assert.AreSame(outerRing, layer.OuterRing); Assert.AreNotSame(holes, layer.Holes); TestHelper.AssertCollectionsAreEqual(holes, layer.Holes, new ReferenceEqualityComparer()); @@ -190,14 +189,13 @@ CreateRandomRing(random) }; var data = new MacroStabilityInwardsSoilLayerData(); - IEnumerable nestedLayers = Enumerable.Empty(); + IEnumerable nestedLayers = Enumerable.Empty(); // Call var layer = new MacroStabilityInwardsSoilLayer2D(outerRing, holes, data, nestedLayers); // Assert - Assert.IsInstanceOf(layer); - Assert.NotNull(layer); + Assert.IsInstanceOf(layer); Assert.AreSame(outerRing, layer.OuterRing); Assert.AreNotSame(holes, layer.Holes); TestHelper.AssertCollectionsAreEqual(holes, layer.Holes, new ReferenceEqualityComparer());