public void DoesNotBreakForRegularStringsThatDoNotNeedToBeReplaced_CommandBarControl() { var actual = Names.CommandBarControl("{..}"); var expected = new CommandBarControlName("{..}"); Assert.AreEqual(expected, actual); }
public void ShouldParseSimpleExample() { var sut = new CommandBarControlName("a"); Assert.AreEqual("a", sut.Name); Assert.Null(sut.Parent); }
public void ShouldParseParent() { var sut = new CommandBarControlName("a|b|c"); Assert.AreEqual("c", sut.Name); Assert.AreEqual(new CommandBarControlName("a|b"), sut.Parent); }
public void DefaultValues() { var sut = new CommandBarControlName(); Assert.AreEqual("???", sut.Name); Assert.AreEqual(null, sut.Parent); Assert.True(sut.IsUnknown); }