ToString() public method

Overridden to return the short name of the framework
public ToString ( ) : string
return string
Beispiel #1
0
        public void CanDisplayFrameworkAsString(FrameworkData data)
        {
            RuntimeFramework framework = new RuntimeFramework(data.runtime, data.frameworkVersion);

            Assert.AreEqual(data.representation, framework.ToString(), "#1");
            Assert.AreEqual(data.displayName, framework.DisplayName, "#2");
        }
 public void CanDisplayFrameworkAsString(FrameworkData data)
 {
     RuntimeFramework framework = new RuntimeFramework(data.runtime, data.frameworkVersion);
     Assert.AreEqual(data.representation, framework.ToString());
     Assert.AreEqual(data.displayName, framework.DisplayName);
 }