Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Last active June 9, 2016 14:34
Show Gist options
  • Save masaru-b-cl/f382b396f7b2b7d2850efbac31a4f874 to your computer and use it in GitHub Desktop.
Save masaru-b-cl/f382b396f7b2b7d2850efbac31a4f874 to your computer and use it in GitHub Desktop.
refactor test code (introduce SetUp, remove duplicated test
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