Created
June 9, 2016 14:34
-
-
Save masaru-b-cl/88202b0671b72320be76413e77f950ed to your computer and use it in GitHub Desktop.
add fizz test
This file contains hidden or 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 Microsoft.VisualStudio.TestTools.UnitTesting; | |
| namespace FizzBuzz.Test | |
| { | |
| [TestClass] | |
| public class FizzBuzzTest | |
| { | |
| private FizzBuzzer fizzBuzzer; | |
| [TestInitialize] | |
| public void SetUp() | |
| { | |
| fizzBuzzer = new FizzBuzzer(); | |
| } | |
| [TestMethod] | |
| public void 引数が正の数の場合文字列でその数を返す() | |
| { | |
| fizzBuzzer.Say(1).Is("1"); | |
| } | |
| [TestMethod] | |
| public void 引数が3の倍数の場合Fizzを返す() | |
| { | |
| fizzBuzzer.Say(3).Is("Fizz"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment