Last active
December 14, 2015 20:08
-
-
Save kawakawa/5141532 to your computer and use it in GitHub Desktop.
Visual Studio2012 でNUnitをする際のデモ用ソース
http://kawakawa2000.jugem.jp/?eid=38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using NUnit.Framework; | |
using FizzBuzz; | |
namespace FizzBuzzTest | |
{ | |
[TestFixture] | |
public class UnitTest1 | |
{ | |
[Test] | |
public void _15の倍数になることを確認() | |
{ | |
var target = new FizzBuzz.FizzBuzz(); | |
var expected = "FizzBuzz"; | |
var actual = target.Show(15); | |
Assert.AreEqual(expected, actual); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment