Last active
June 9, 2016 14:34
-
-
Save masaru-b-cl/f382b396f7b2b7d2850efbac31a4f874 to your computer and use it in GitHub Desktop.
refactor test code (introduce SetUp, remove duplicated 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"); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment