private static void AssertUpperCaseLowerCase(Mock <INativeElement> elementMock) { // UpperCase elementMock.Expect(element => element.TagName).Returns("INPUT"); elementMock.Expect(element => element.GetAttributeValue("type")).Returns("IMAGE"); // LowerCase var elementTag = new ElementTag("input", "image"); Assert.IsTrue(elementTag.IsMatch(elementMock.Object), "Compare should compare using CultureInvariant"); Assert.AreEqual("INPUT (image)", elementTag.ToString(), "ToString problem"); elementMock.VerifyAll(); }
public void ToStringShouldBeEmptyIfTagNameIsNull() { var elementTag = new ElementTag((string)null); Assert.That(elementTag.ToString(), Is.EqualTo("")); }
public void ToStringShouldBeEmptyIfTagNameIsNull() { var elementTag = new ElementTag((string)null); Assert.That(elementTag.ToString(), NUnit.Framework.SyntaxHelpers.Is.EqualTo("")); }
private static void AssertUpperCaseLowerCase(Mock<INativeElement> elementMock) { // UpperCase elementMock.Expect(element => element.TagName).Returns("INPUT"); elementMock.Expect(element => element.GetAttributeValue("type")).Returns("IMAGE"); // LowerCase var elementTag = new ElementTag("input", "image"); Assert.IsTrue(elementTag.IsMatch(elementMock.Object), "Compare should compare using CultureInvariant"); Assert.AreEqual("INPUT (image)", elementTag.ToString(), "ToString problem"); elementMock.VerifyAll(); }
public void ToStringShouldBeEmptyIfTagNameIsNull() { var elementTag = new ElementTag((string) null); Assert.That(elementTag.ToString(), NUnit.Framework.SyntaxHelpers.Is.EqualTo("")); }
public override string ToString() { return($"UncategorizedFilterableEntity[Tag={ElementTag.ToString()},State={PCheckBox.GetCheckState(CheckBox)}]"); }
public void ToStringShouldBeEmptyIfTagNameIsNull() { var elementTag = new ElementTag((string) null); Assert.That(elementTag.ToString(), Is.EqualTo("")); }