public void NonMutableClassWitOnePorperty() { Parser parser = new Parser(); string json = GetInputJson("NonMutableClassWithOnePorperty.json"); string expectedOput = GetExpectedClass("NonMutableClassWithOnePorperty.cs") .Replace('\r'.ToString(), "") .Replace('\t'.ToString(), "") .Replace('\n'.ToString(), ""); string output = parser.GenerateClass(json) .Replace('\r'.ToString(), "") .Replace('\t'.ToString(), "") .Replace('\n'.ToString(), ""); Console.WriteLine("Input: \n{0}", json); Console.WriteLine("\n\nExpected: \n{0}", expectedOput); Console.WriteLine("\n\nOutput: \n{0}", output); Assert.AreEqual(expectedOput, output); }
public void EmtyTest() { Parser parser = new Parser(); Assert.AreEqual("Invalid input!", parser.GenerateClass("")); }