public void TestNullValue() { var t = new TestMainClass(); var json = Piekson.ToJson(t); Assert.AreEqual("{}", json); }
public void TestNestedToJson() { TestMainClass t = new TestMainClass(new TestNestedClass()); var json = Piekson.ToJson(t); Assert.AreEqual("{\"nested\":{\"test\":100.01}}", json); }
public static void Main(string[] args) { Console.Write("Input 'test' to test. Otherwise, enter to start calculating.: "); if (Console.ReadLine() != "test") { Console.WriteLine("Please input numbers of Section, Width, Depth, and Velocity according to the messages below:"); getRiverFlow(); } else { TestMainClass.TestMain(); } }