public void Should_be_tested(ClipRectangle sut, ClipRectangle other, bool expectedResult) { // Act var result = sut.Equals(other); // Assert Assert.Equal(expectedResult, result); }
public void Should_return_the_expected_values() { // Arrange var sut = new ClipRectangle { Top = 1, Left = 2, Width = 3, Height = 4 }; var properties = new Dictionary <string, object>(); // Act var result = sut.SerializeTo(properties); // Assert Assert.Same(properties, result); Assert.Collection(properties, property => property.AssertEqual("top", 1), property => property.AssertEqual("left", 2), property => property.AssertEqual("width", 3), property => property.AssertEqual("height", 4) ); }