public void ToString_ReturnString() { // Act var obj = HtmlId.Create(value); // Assert Assert.Equal($@"{name}=""{value}""", obj.ToString()); }
public void Equals_Null() { // Arrange var orig = HtmlId.Create(value); // Assert Assert.False(orig.Equals(null)); }
public void Equals_OtherObject() { // Arrange var orig = HtmlId.Create(value); var str = $@"{name}=""{value}"""; // Assert Assert.False(orig.Equals(str)); }
public void Equals_IsNotEqual() { // Arrange var orig = HtmlId.Create(value); var other = HtmlId.Create("not same"); // Assert Assert.False(orig.Equals(other)); }
public void Equals_IsEqual() { // Arrange var orig = HtmlId.Create(value); var copy = HtmlId.Create(value); // Assert Assert.True(orig.Equals(copy)); }
public void Create_ReturnNewInstance() { // Act var obj = HtmlId.Create(value); // Assert Assert.Equal(name, obj.Name); Assert.Equal(value, obj.Value); Assert.IsType <HtmlId>(obj); }