public void Fonts_DefaultValue_ReturnsEmptyString() { // Arrange using (var testObject = new ToolFontFace()) { // Act, Assert testObject.ShouldSatisfyAllConditions( () => testObject.Fonts.ShouldNotBeNull(), () => testObject.Fonts.Count.ShouldBe(0)); } }
public void Fonts_SetValue_ReturnsSetValue() { // Arrange using (var testObject = new ToolFontFace()) { // Act testObject.Fonts = TestFontArrayList; // Assert testObject.ShouldSatisfyAllConditions( () => testObject.Fonts.Count.ShouldBe(2), () => testObject.Fonts[0].ShouldBeSameAs(TestFontArrayList[0]), () => testObject.Fonts[1].ShouldBeSameAs(TestFontArrayList[1])); } }