Advertisement
sec_goat

Untitled

Mar 8th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using NUnit.Framework;
  6.  
  7. namespace nunitTests
  8. {
  9.     [TestFixture]
  10.     class Tests
  11.     {
  12.         [TestCase]
  13.         public void AddTwoStringsTest()
  14.         {
  15.             String expected = "DogNuts";
  16.             String actual = Program.AddTwoStrings("Dog", "Nuts");
  17.             Assert.AreEqual(expected, actual);
  18.         }
  19.     }
  20.      
  21.     public static String AddTwoStrings(string one, string two)
  22.     {
  23.         return one + two;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement