PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/csharp/sneaky1_runme.cs

#
C# | 20 lines | 16 code | 4 blank | 0 comment | 8 complexity | 40a9146588c98c7acfb26dfbdd8789ed MD5 | raw file
 1using System;
 2using sneaky1Namespace;
 3
 4public class runme
 5{
 6    static void Main() 
 7    {
 8        if (sneaky1.add(30, 2) != 32)
 9            throw new Exception("add test failed");
10
11        if (sneaky1.subtract(20, 2) != 18)
12            throw new Exception("subtract test failed");
13
14        if (sneaky1.mul(20, 2) != 40)
15            throw new Exception("mul test failed");
16
17        if (sneaky1.divide(20, 2) != 10)
18            throw new Exception("div test failed");
19    }
20}