public void NormalizeShouldReturn1WhenNodeIs1and1() { // Arrange Id id = new Id.Node(1, 1); // Act Id normalized = id.Normalize(); // Assert normalized.Should().Be((Id)1); }
public void NormalizeShouldReturnUnchangedWhenNodeCannotBeSimplifiedLike1and0() { // Arrange Id id = new Id.Node(1, 0); // Act Id normalized = id.Normalize(); // Assert normalized.Should().Be(id); }
public void NormalizeShouldReturn0WhenNodeIs0and0() { // Arrange Id id = new Id.Node(0, 0); // Act Id normalized = id.Normalize(); // Assert normalized.Should().Be((Id)0); }