public void CreateUniqueId_FromIUniquelyIdentifiable() { // Arrange CustomUniquelyIdentifiable custom = new CustomUniquelyIdentifiable("hello-world"); // Act string retVal = DescriptorUtil.CreateUniqueId(custom); // Assert Assert.AreEqual("[11]hello-world", retVal); }
public void CreateUniqueId_FromIUniquelyIdentifiable() { // Arrange CustomUniquelyIdentifiable custom = new CustomUniquelyIdentifiable("hello-world"); // Act string retVal = DescriptorUtil.CreateUniqueId(custom); // Assert Assert.Equal("[11]hello-world", retVal); }
public void AppendUniqueId_FromIUniquelyIdentifiable() { // Arrange CustomUniquelyIdentifiable custom = new CustomUniquelyIdentifiable("hello-world"); StringBuilder builder = new StringBuilder(); // Act DescriptorUtil.AppendUniqueId(builder, custom); // Assert Assert.Equal("[11]hello-world", builder.ToString()); }