public void Ex2() { string input = "----Lorem ipsum dolor sit---"; var decorator = new RemoveDoubleSpaces(); string result = decorator.Transform(input); Assert.AreEqual("----Lorem ipsum dolor sit---", result); }
public void RemoveRazorDoubleSpacesComment() { MinifyOperation operation = new RemoveDoubleSpaces(); string data = "a \r\n\r\ntest comment\n\r\n z "; IMinifyResult Results = operation.Process(MinificationFileType.Razor, ref data, new List <PreserveBlock>()); Assert.IsTrue(Results.StartLength == 31); Assert.IsTrue(Results.EndLength == 24); Assert.IsTrue(data.Equals("a \r\n\r\ntest comment\n\r\n z ")); }