Bddify.Samples.Net4.zip
Bddify.Samples
Bddify.Samples.Atm
Bddify.Samples.suo
Bddify.Samples.TicTacToe
packages
Bddify.0.8
Bddify.0.8.nupkg
content
lib
NET35
Bddify.dll
NET40
Bddify.dll
SL4
Bddify.dll
Bddify.Samples.Atm.0.8
Bddify.Samples.Atm.0.8.nupkg
content
Bddify.Samples.Atm
Bddify.Samples.TicTacToe.0.8
Bddify.Samples.TicTacToe.0.8.nupkg
content
Bddify.Samples.TicTacToe
NUnit.2.5.10.11092
lib
nunit.framework.dll
nunit.mocks.dll
pnunit.framework.dll
Logo.ico
NUnit.2.5.10.11092.nupkg
tools
agent.conf
agent.log.conf
launcher.log.conf
lib
Failure.png
fit.dll
Ignored.png
Inconclusive.png
log4net.dll
nunit.core.dll
nunit.core.interfaces.dll
nunit.fixtures.dll
nunit.uiexception.dll
nunit.uikit.dll
nunit.util.dll
nunit-console-runner.dll
nunit-gui-runner.dll
Skipped.png
Success.png
nunit.exe
nunit.framework.dll
nunit-agent.exe
nunit-agent-x86.exe
nunit-console.exe
nunit-console-x86.exe
NUnitTests.nunit
nunit-x86.exe
pnunit.framework.dll
pnunit.tests.dll
pnunit-agent.exe
pnunit-launcher.exe
runFile.exe
test.conf
RazorEngine.2.1
lib
.NetFramework 4.0
RazorEngine.dll
System.Web.Razor.dll
RazorEngine.2.1.nupkg
Properties
Bddify.Samples.V0.9.zip
Bddify.Samples.suo
Bddify.0.9
Bddify.0.9.nupkg
content
lib
NET35
Bddify.dll
NET40
Bddify.dll
SL4
Bddify.dll
Bddify.Samples.Atm.0.9
Bddify.Samples.Atm.0.9.nupkg
content
Bddify.Samples.Atm
Bddify.Samples.TicTacToe.0.9
Bddify.Samples.TicTacToe.0.9.nupkg
content
Bddify.Samples.TicTacToe
nunit.framework.dll
nunit.mocks.dll
pnunit.framework.dll
Logo.ico
NUnit.2.5.10.11092.nupkg
agent.conf
agent.log.conf
launcher.log.conf
Failure.png
fit.dll
Ignored.png
Inconclusive.png
log4net.dll
nunit.core.dll
nunit.core.interfaces.dll
nunit.fixtures.dll
nunit.uiexception.dll
nunit.uikit.dll
nunit.util.dll
nunit-console-runner.dll
nunit-gui-runner.dll
Skipped.png
Success.png
nunit.exe
nunit.framework.dll
nunit-agent.exe
nunit-agent-x86.exe
nunit-console.exe
nunit-console-x86.exe
NUnitTests.nunit
nunit-x86.exe
pnunit.framework.dll
pnunit.tests.dll
pnunit-agent.exe
pnunit-launcher.exe
runFile.exe
test.conf
RazorEngine.dll
System.Web.Razor.dll
RazorEngine.2.1.nupkg
|
using Bddify.Core;
using NUnit.Framework;
namespace Bddify.Samples.TicTacToe
{
public class XWins : GameUnderTest
{
[RunStepWithArgs(
new[] { X, X, O },
new[] { X, X, O },
new[] { O, O, N },
StepTextTemplate = BoardStateTemplate)]
void GivenTheFollowingBoard(string[] firstRow, string[] secondRow, string[] thirdRow)
{
Game = new Game(firstRow, secondRow, thirdRow);
}
void WhenXPlaysInTheBottomRight()
{
Game.PlayAt(2, 2);
}
void ThenTheWinnerShouldBeX()
{
Assert.AreEqual(X, Game.Winner);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.