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
public class CustomConvention : Convention | |
{ | |
public CustomConvention() | |
{ | |
Classes | |
.NameEndsWith("Tests"); | |
Methods | |
.Where(method => method.IsVoid()); |
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
Test 'CalculatorTests.ShouldAdd' failed: Hypothetical.Assertion.Library.AssertionException | |
Expected 999 but was 5. | |
Conventions\DefaultConvention.cs(10,0): at Hypothetical.Assertion.Library.Assert.AreEqual(Int32 expected, Int32 actual) | |
CalculatorTests.cs(14,0): at CalculatorTests.ShouldAdd() | |
Test 'CalculatorTests.ShouldSubtract' failed: Hypothetical.Assertion.Library.AssertionException | |
Expected 999 but was 2. | |
Conventions\DefaultConvention.cs(10,0): at Hypothetical.Assertion.Library.Assert.AreEqual(Int32 expected, Int32 actual) | |
CalculatorTests.cs(19,0): at CalculatorTests.ShouldSubtract() |
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 Hypothetical.Assertion.Library; | |
public class CalculatorTests | |
{ | |
readonly Calculator calculator; | |
public CalculatorTests() | |
{ | |
calculator = new Calculator(); | |
} |
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
namespace Hypothetical.Assertion.Library | |
{ | |
public static class Assert | |
{ | |
public static void AreEqual(int expected, int actual) | |
{ | |
if (expected != actual) | |
throw new AssertionException(String.Format("Expected {0} but was {1}.", expected, actual)); | |
} | |
} |
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
public interface Listener | |
{ | |
void AssemblyStarted(Assembly assembly); | |
void CaseSkipped(SkipResult result); | |
void CasePassed(PassResult result); | |
void CaseFailed(FailResult result); | |
void AssemblyCompleted(Assembly assembly, AssemblyResult result); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<assembly name="C:\dev\personal\fixie\src\Fixie.Tests\bin\Release\Fixie.Tests.dll" run-date="2014-01-31" run-time="21:21:25" configFile="C:\dev\personal\fixie\build\Fixie.Console.exe.Config" time="0.685" total="153" passed="153" failed="0" skipped="0" environment="32-bit .NET v4.0.30319" test-framework="fixie 0.0.1.0"> | |
<class time="0.008" name="Fixie.Tests.Behaviors.ExecuteCasesTests" total="1" passed="1" failed="0" skipped="0"> | |
<test name="Fixie.Tests.Behaviors.ExecuteCasesTests.ShouldPerformCaseExecutionBehaviorForAllGivenCases" type="Fixie.Tests.Behaviors.ExecuteCasesTests" method="ShouldPerformCaseExecutionBehaviorForAllGivenCases" result="pass" time="0.008" /> | |
</class> | |
<class time="0.001" name="Fixie.Tests.CaseExecutionTests" total="2" passed="2" failed="0" skipped="0"> | |
<test name="Fixie.Tests.CaseExecutionTests.ShouldBeAssociatedWithCase" type="Fixie.Tests.CaseExecutionTests" method="ShouldBeAssociatedWithCase" result="pass" time="0.000" /> | |
<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
<?xml version="1.0" encoding="utf-8"?> | |
<test-results date="2014-01-31" time="21:21:25" name="Results" total="153" failures="0" not-run="0"> | |
<test-suite success="true" name="C:\dev\personal\fixie\src\Fixie.Tests\bin\Release\Fixie.Tests.dll" time="0.685"> | |
<results> | |
<test-suite success="true" name="Fixie.Conventions.DefaultConvention" time="0.685"> | |
<results> | |
<test-suite name="Fixie.Tests.Behaviors.ExecuteCasesTests" success="true" time="0.008"> | |
<results> | |
<test-case name="Fixie.Tests.Behaviors.ExecuteCasesTests.ShouldPerformCaseExecutionBehaviorForAllGivenCases" executed="true" success="true" time="0.008" /> | |
</results> |
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
Fixie.Console.exe path\to\your\Tests.dll --category Slow --fixie:NUnitXml TestResult.xml | |
Fixie.Console.exe path\to\your\Tests.dll --category Slow --fixie:XUnitXml TestResult.xml |
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
Fixie.Console.exe path\to\your\Tests.dll --category Slow |
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
/// <summary> | |
/// Summary description for Class1. | |
/// </summary> | |
class Class1 | |
{ | |
/// <summary> | |
/// The main entry point for the application. | |
/// </summary> | |
[STAThread] | |
public static int Main(string[] args)... |