public void ReplaceExtension() { string ext = MyScriptReference.DoReplaceExtension("js"); Assert.AreEqual("debug.js", ext, "#1"); ext = MyScriptReference.DoReplaceExtension("testjs"); Assert.AreEqual("testdebug.js", ext, "#2"); ext = MyScriptReference.DoReplaceExtension("test.js"); Assert.AreEqual("test.debug.js", ext, "#3"); }
public void ReplaceExtensionShortPath() { MyScriptReference.DoReplaceExtension(String.Empty); }
public void ReplaceExtensionNullPath() { MyScriptReference.DoReplaceExtension(null); }