Example #1
0
 public static void ContainsTest()
 {
     Qunit.RunTest("ContainsTest", () =>
     {
         Qunit.IsTrue(new[] { "one", "two" }.Contains("two"));
     });
 }
Example #2
0
 public static void PeekTest()
 {
     Qunit.RunTest("PeekTest", () =>
     {
         var stack = new Stack <string>();
         stack.Push("hello");
         stack.Push("goodbye");
         Qunit.AreEqual("goodbye", stack.Peek());
     });
 }