public void PassingTypeStringReturnsFirstSegmentAndTrimsSpaces() { TypeNodeNameFormatter nameFormatter = new TypeNodeNameFormatter(); string name = nameFormatter.CreateName(" a , b, c, d"); Assert.IsNotNull(name); Assert.AreEqual("a", name); }
public void PassingRegularStringReturnsRegularString() { TypeNodeNameFormatter nameFormatter = new TypeNodeNameFormatter(); string name = nameFormatter.CreateName("Some arbitrary string"); Assert.IsNotNull(name); Assert.AreEqual("Some arbitrary string", name); }
public void PassingTypeReturnsTypeName() { TypeNodeNameFormatter nameFormatter = new TypeNodeNameFormatter(); string name = nameFormatter.CreateName(typeof(Exception).AssemblyQualifiedName); Assert.IsNotNull(name); Assert.AreEqual(typeof(Exception).Name, name); }