Browse files

Moving to Xunit test framework

  • Loading branch information...
1 parent 332cb8f commit d446ed8c8deae15e956c63a96ab8b3052078d3c0 @ayende committed Jan 5, 2010
Showing with 5,556 additions and 31,306 deletions.
  1. +8 −11 Rhino.DSL.Tests/AnonymousBaseClassTestFixture.cs
  2. +2 −3 Rhino.DSL.Tests/AutoImportTextFixture.cs
  3. +5 −6 Rhino.DSL.Tests/AutoReferenceFilesCompilerStepFixure.cs
  4. +4 −6 Rhino.DSL.Tests/BaseCompilerTestFixture.cs
  5. +2 −3 Rhino.DSL.Tests/BaseDslFixture.cs
  6. +12 −13 Rhino.DSL.Tests/BlockToArgumentsTestFixture.cs
  7. +2 −2 Rhino.DSL.Tests/ConsoleRecorder.cs
  8. +24 −27 Rhino.DSL.Tests/DslFactoryFixture/DslEngineFixture.cs
  9. +13 −18 Rhino.DSL.Tests/DslFactoryFixture/DslFactoryFixture.cs
  10. +4 −5 Rhino.DSL.Tests/DslFactoryFixture/DslFixtureIntegrationFixture.cs
  11. +27 −28 Rhino.DSL.Tests/ExternalDSL/ExternalDSLFixture.cs
  12. +10 −11 Rhino.DSL.Tests/FeaturesDSL/WithActionsDSLFixture.cs
  13. +14 −17 Rhino.DSL.Tests/MethodSubstitutionBaseClassTestFixture.cs
  14. +17 −18 Rhino.DSL.Tests/OrderDSL/OrderDSLFixture.cs
  15. +5 −6 Rhino.DSL.Tests/Rhino.DSL.Tests-v2008.csproj
  16. +0 −80 Rhino.DSL.Tests/SchedulingDSL/SchedulingDSLFixture.cs
  17. +8 −13 Rhino.DSL.Tests/TransformerCompilerStepTestFixture.cs
  18. +0 −26 Rhino.DSL.sln
  19. +0 −19 SharedLibs/Makefile.am
  20. BIN SharedLibs/MbUnit.Framework.dll
  21. BIN SharedLibs/xunit.dll
  22. BIN SharedLibs/xunit.extensions.dll
  23. +2,132 −0 SharedLibs/xunit.xml
  24. BIN Tools/MbUnit/Aggregate.dll
  25. BIN Tools/MbUnit/Aggregate.pdb
  26. BIN Tools/MbUnit/MbUnit.AddIn.dll
  27. BIN Tools/MbUnit/MbUnit.Cons.exe
  28. +0 −12 Tools/MbUnit/MbUnit.Cons.exe.config
  29. BIN Tools/MbUnit/MbUnit.Demo.1.1.dll
  30. +0 −20 Tools/MbUnit/MbUnit.Framework.1.1.XML
  31. BIN Tools/MbUnit/MbUnit.Framework.1.1.dll
  32. BIN Tools/MbUnit/MbUnit.Framework.2.0.dll
  33. +0 −10,995 Tools/MbUnit/MbUnit.Framework.XML
  34. BIN Tools/MbUnit/MbUnit.Framework.dll
  35. BIN Tools/MbUnit/MbUnit.GUI.exe
  36. +0 −14 Tools/MbUnit/MbUnit.GUI.exe.config
  37. BIN Tools/MbUnit/MbUnit.MSBuild.Tasks.dll
  38. BIN Tools/MbUnit/MbUnit.Tasks.dll
  39. BIN Tools/MbUnit/MbUnit.Tests.1.1.dll
  40. BIN Tools/MbUnit/NAnt.Core.dll
  41. +0 −14,462 Tools/MbUnit/NAnt.Core.xml
  42. BIN Tools/MbUnit/NGraphviz.Helpers.dll
  43. BIN Tools/MbUnit/NGraphviz.Layout.dll
  44. BIN Tools/MbUnit/NGraphviz.dll
  45. BIN Tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll
  46. BIN Tools/MbUnit/QuickGraph.Algorithms.dll
  47. BIN Tools/MbUnit/QuickGraph.dll
  48. BIN Tools/MbUnit/Refly.dll
  49. BIN Tools/MbUnit/TestDriven.Framework.dll
  50. +0 −5,483 Tools/MbUnit/TestFu.XML
  51. BIN Tools/MbUnit/TestFu.dll
  52. BIN Tools/MbUnit/XsdTidy.exe
  53. BIN Tools/MbUnit/log4net.dll
  54. BIN Tools/MbUnit/uninst.exe
  55. +0 −6 Tools/MbUnit/users.txt
  56. BIN Tools/xUnit/XUnit.NAntTasks.dll
  57. BIN Tools/xUnit/xunit.console.exe
  58. +21 −0 Tools/xUnit/xunit.console.exe.config
  59. BIN Tools/xUnit/xunit.dll
  60. BIN Tools/xUnit/xunit.extensions.dll
  61. +705 −0 Tools/xUnit/xunit.extensions.xml
  62. BIN Tools/xUnit/xunit.gui.exe
  63. BIN Tools/xUnit/xunit.installer.exe
  64. BIN Tools/xUnit/xunit.runner.msbuild.dll
  65. BIN Tools/xUnit/xunit.runner.resharper.dll
  66. BIN Tools/xUnit/xunit.runner.tdnet.dll
  67. BIN Tools/xUnit/xunit.runner.utility.dll
  68. +407 −0 Tools/xUnit/xunit.runner.utility.xml
  69. +2,132 −0 Tools/xUnit/xunit.xml
  70. +2 −2 default.ps1
View
19 Rhino.DSL.Tests/AnonymousBaseClassTestFixture.cs
@@ -3,41 +3,38 @@ namespace Rhino.DSL.Tests
using System;
using System.Reflection;
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class AnonymousBaseClassTestFixture : BaseCompilerTestFixture
{
private Assembly assembly;
- [SetUp]
- public override void SetUp()
+ public AnonymousBaseClassTestFixture()
{
- base.SetUp();
assembly = Compile(@"AnonymousBaseClass.boo");
}
- [Test]
+ [Fact]
public void CanCreateAnonymousBaseClass()
{
- Assert.IsNotNull(this.assembly);
+ Assert.NotNull(this.assembly);
}
- [Test]
+ [Fact]
public void WillCreateTypeWithSameNameAsFile()
{
- Assert.IsNotNull(
+ Assert.NotNull(
assembly.GetType("AnonymousBaseClass")
);
}
- [Test]
+ [Fact]
public void CanExecuteNewTypeAndGetCodeFromFile()
{
MyAnonymousBaseClass instance = (MyAnonymousBaseClass)assembly.CreateInstance("AnonymousBaseClass");
instance.Run();
- Assert.AreEqual(
+ Assert.Equal(
"Hello from anonymous base class" + Environment.NewLine,
consoleOutput.GetStringBuilder().ToString());
}
View
5 Rhino.DSL.Tests/AutoImportTextFixture.cs
@@ -2,12 +2,11 @@ namespace Rhino.DSL.Tests
{
using System.Xml;
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class AutoImportTextFixture : BaseCompilerTestFixture
{
- [Test]
+ [Fact]
public void Can_automatically_import_namespaces()
{
Compile("AutoImport.boo");
View
11 Rhino.DSL.Tests/AutoReferenceFilesCompilerStepFixure.cs
@@ -6,30 +6,29 @@ namespace Rhino.DSL.Tests
using Boo.Lang.Compiler;
using Boo.Lang.Compiler.IO;
using Boo.Lang.Compiler.Pipelines;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class AutoReferenceFilesCompilerStepFixure : BaseCompilerTestFixture
{
- [Test]
+ [Fact]
public void CanAddFileReference()
{
Assembly asm = Compile(@"hasReferenceToAnotherFile.boo", CompilerOutputType.ConsoleApplication);
asm.EntryPoint.Invoke(null, new object[1] { null });
- Assert.Contains(consoleOutput.GetStringBuilder().ToString(), "From second file");
+ Assert.Contains("From second file", consoleOutput.GetStringBuilder().ToString());
}
- [Test]
+ [Fact]
public void CanAddImportsFromAnotherFile()
{
Assembly asm = Compile(@"hasReferenceToAnotherFile.boo", CompilerOutputType.ConsoleApplication);
asm.EntryPoint.Invoke(null, new object[1] { null });
- Assert.Contains(consoleOutput.GetStringBuilder().ToString(), "Marshal");
+ Assert.Contains("Marshal", consoleOutput.GetStringBuilder().ToString());
}
View
10 Rhino.DSL.Tests/BaseCompilerTestFixture.cs
@@ -7,16 +7,15 @@ namespace Rhino.DSL.Tests
using Boo.Lang.Compiler;
using Boo.Lang.Compiler.IO;
using Boo.Lang.Compiler.Pipelines;
- using MbUnit.Framework;
+ using Xunit;
- public class BaseCompilerTestFixture
+ public class BaseCompilerTestFixture : IDisposable
{
protected StringWriter consoleOutput;
private TextWriter oldConsole;
private string oldCurrentDir;
- [SetUp]
- public virtual void SetUp()
+ public BaseCompilerTestFixture()
{
oldCurrentDir = Environment.CurrentDirectory;
Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
@@ -25,8 +24,7 @@ public virtual void SetUp()
Console.SetOut(consoleOutput);
}
- [TearDown]
- public void TearDown()
+ public void Dispose()
{
Environment.CurrentDirectory = oldCurrentDir;
Debug.WriteLine(consoleOutput.GetStringBuilder().ToString());
View
5 Rhino.DSL.Tests/BaseDslFixture.cs
@@ -1,15 +1,14 @@
namespace Rhino.DSL.Tests
{
using System;
- using MbUnit.Framework;
+ using Xunit;
public class BaseDslFixture<TDslEngine, TDslBase>
where TDslEngine : DslEngine, new()
{
protected DslFactory factory;
- [SetUp]
- public void SetUp()
+ public BaseDslFixture()
{
factory = new DslFactory();
factory.BaseDirectory = AppDomain.CurrentDomain.BaseDirectory;
View
25 Rhino.DSL.Tests/BlockToArgumentsTestFixture.cs
@@ -1,12 +1,11 @@
using Boo.Lang.Compiler.Ast;
-using MbUnit.Framework;
+using Xunit;
namespace Rhino.DSL.Tests
{
- [TestFixture]
public class BlockToArgumentsTransformerTestFixture
{
- [Test]
+ [Fact]
public void Expression_statement_is_transformed()
{
LiteralExpression exp = new StringLiteralExpression("arg1");
@@ -20,11 +19,11 @@ public void Expression_statement_is_transformed()
BlockToArgumentsTransformer transformer = new BlockToArgumentsTransformer("DoStuff");
transformer.Visit(fixture);
- Assert.AreEqual(exp, fixture.Arguments[0]);
- Assert.IsFalse(fixture.Block.HasStatements, "MacroStatement block should be empty after transformation.");
+ Assert.Equal(exp, fixture.Arguments[0]);
+ Assert.False(fixture.Block.HasStatements, "MacroStatement block should be empty after transformation.");
}
- [Test]
+ [Fact]
public void MacroStatement_with_no_arguments_and_no_block_is_transformed_to_ReferenceExpression()
{
const string referenceName = "some_reference";
@@ -38,10 +37,10 @@ public void MacroStatement_with_no_arguments_and_no_block_is_transformed_to_Refe
transformer.Visit(fixture);
Assert.IsAssignableFrom(typeof (ReferenceExpression), fixture.Arguments[0]);
- Assert.AreEqual(referenceName, (fixture.Arguments[0] as ReferenceExpression).Name);
+ Assert.Equal(referenceName, (fixture.Arguments[0] as ReferenceExpression).Name);
}
- [Test]
+ [Fact]
public void MacroStatement_with_block_is_transformed_to_MethodInvocationExpression()
{
const string methodInBlockName = "some_method";
@@ -59,12 +58,12 @@ public void MacroStatement_with_block_is_transformed_to_MethodInvocationExpressi
MethodInvocationExpression mie = doStuffStatement.Arguments[0] as MethodInvocationExpression;
- Assert.IsNotNull(mie, "Could not cast argument one of MacroStatement to MethodInvocationExpression.");
- Assert.AreEqual(methodInBlockName, (mie.Target as ReferenceExpression).Name);
+ Assert.NotNull(mie);
+ Assert.Equal(methodInBlockName, (mie.Target as ReferenceExpression).Name);
Assert.IsAssignableFrom(typeof (BlockExpression), mie.Arguments[0]);
}
- [Test]
+ [Fact]
public void MacroStatement_with_arguments_is_transformed_to_MethodInvocationExpression()
{
const string methodInBlockName = "some_method";
@@ -80,8 +79,8 @@ public void MacroStatement_with_arguments_is_transformed_to_MethodInvocationExpr
MethodInvocationExpression mie = fixture.Arguments[0] as MethodInvocationExpression;
- Assert.IsNotNull(mie, "Could not cast argument one of MacroStatement to MethodInvocationExpression.");
- Assert.AreEqual(methodInBlockName, (mie.Target as ReferenceExpression).Name);
+ Assert.NotNull(mie);//, "Could not cast argument one of MacroStatement to MethodInvocationExpression."
+ Assert.Equal(methodInBlockName, (mie.Target as ReferenceExpression).Name);
}
private MacroStatement GetMacroStatement(string name, params Statement[] blockStatements)
View
4 Rhino.DSL.Tests/ConsoleRecorder.cs
@@ -2,7 +2,7 @@ namespace Rhino.DSL.Tests
{
using System;
using System.IO;
- using MbUnit.Framework;
+ using Xunit;
public class ConsoleRecorder : IDisposable
{
@@ -23,7 +23,7 @@ public string Result
public void AssertEquals(string expected)
{
- Assert.AreEqual(expected, Result);
+ Assert.Equal(expected, Result);
}
public void Dispose()
View
51 Rhino.DSL.Tests/DslFactoryFixture/DslEngineFixture.cs
@@ -4,57 +4,54 @@ namespace Rhino.DSL.Tests.DslFactoryFixture
using System.IO;
using System.Reflection;
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
using Boo.Lang.Compiler.Ast;
- [TestFixture]
- public class DslEngineFixture
+ public class DslEngineFixture : IDisposable
{
private MyDslEngine engine;
- [SetUp]
- public void SetUp()
+ public DslEngineFixture()
{
engine = new MyDslEngine();
}
- [TearDown]
- public void TearDown()
+ public void Dispose()
{
foreach (string file in Directory.GetFiles(Path.GetTempPath(), "*.boocache"))
{
File.Delete(file);
}
}
- [Test]
+ [Fact]
public void When_DSL_engine_is_asked_to_create_a_DSL_it_will_compile_and_return_the_compiler_context()
{
string path = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\MyDsl.boo"));
CompilerContext compilerContext = engine.Compile(path);
- Assert.AreEqual(0, compilerContext.Errors.Count);
- Assert.IsNotNull(compilerContext.GeneratedAssembly);
+ Assert.Equal(0, compilerContext.Errors.Count);
+ Assert.NotNull(compilerContext.GeneratedAssembly);
}
- [Test]
- [ExpectedException(typeof(CompilerError))]
+ [Fact]
public void When_compilation_result_in_an_error_should_throw()
{
- engine.Compile(Path.GetFullPath(@"somethingThatDoesNotExists.boo"));
+ Assert.Throws<CompilerError>(() =>
+ engine.Compile(Path.GetFullPath(@"somethingThatDoesNotExists.boo")));
}
- [Test]
+ [Fact]
public void Dsl_engine_can_take_parameters()
{
DslFactory _Factory = new DslFactory();
_Factory.BaseDirectory = AppDomain.CurrentDomain.BaseDirectory;
_Factory.Register<MyClassWithParams>(new DslEngineWithParameters());
MyClassWithParams classWithParams = _Factory.Create<MyClassWithParams>("DslFactoryFixture\\ScriptWithParameter.boo");
- Assert.AreEqual("World", classWithParams.Hello("World"));
+ Assert.Equal("World", classWithParams.Hello("World"));
}
- [Test]
+ [Fact]
public void engine_reuses_first_compile()
{
string scriptPath = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\engine_reuses_first_compile.boo"));
@@ -65,16 +62,16 @@ public void engine_reuses_first_compile()
engine.CompilerContextCache.AssemblyLoaded += delegate (string filename, Assembly assembly, bool fromCache)
{ lastCachedFilePath = filename; };
engine.Compile(scriptPath);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
lastCachedFilePath = null;
engine.Compile(scriptPath);
- Assert.IsTrue(lastCachedFilePath == null);
+ Assert.True(lastCachedFilePath == null);
}
- [Test]
+ [Fact]
public void engine_recompiles_on_script_change()
{
string scriptPath = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\engine_recompiles_on_script_change.boo"));
@@ -85,14 +82,14 @@ public void engine_recompiles_on_script_change()
File.WriteAllText(scriptPath, "print 1");
engine.Compile(scriptPath);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
lastCachedFilePath = null;
File.WriteAllText(scriptPath, "print 2");
engine.Compile(scriptPath);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
}
- [Test]
+ [Fact]
public void engine_recompiles_on_script_add()
{
string scriptPath1 = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\engine_recompiles_on_script_add1.boo"));
@@ -107,13 +104,13 @@ public void engine_recompiles_on_script_add()
{ lastCachedFilePath = filename; };
engine.Compile(scriptPath1);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
lastCachedFilePath = null;
engine.Compile(scriptPath1, scriptPath2);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
}
- [Test]
+ [Fact]
public void engine_recompiles_on_script_remove()
{
string scriptPath1 = Path.GetFullPath(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\engine_recompiles_on_script_remove1.boo"));
@@ -128,11 +125,11 @@ public void engine_recompiles_on_script_remove()
{ lastCachedFilePath = filename; };
engine.Compile(scriptPath1, scriptPath2);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
lastCachedFilePath = null;
engine.Compile(scriptPath1);
- Assert.IsFalse(lastCachedFilePath == null);
+ Assert.False(lastCachedFilePath == null);
}
}
View
31 Rhino.DSL.Tests/DslFactoryFixture/DslFactoryFixture.cs
@@ -4,10 +4,9 @@ namespace Rhino.DSL.Tests.DslFactoryFixture
using System.IO;
using System.Reflection;
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
using Mocks;
- [TestFixture]
public class DslFactoryFixture
{
private string testUrl = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "test");
@@ -18,8 +17,7 @@ public class DslFactoryFixture
private MockRepository mocks;
private IDslEngineCache mockCache;
- [SetUp]
- public void SetUp()
+ public DslFactoryFixture()
{
factory = new DslFactory();
mocks = new MockRepository();
@@ -54,14 +52,14 @@ private void ExecuteCachedAction(CacheAction action)
action();
}
- [Test]
+ [Fact]
public void Can_register_a_dsl_engine_for_base_type()
{
factory.Register<IDisposable>(mockedDslEngine);
- Assert.IsTrue(factory.IsRegistered<IDisposable>());
+ Assert.True(factory.IsRegistered<IDisposable>());
}
- [Test]
+ [Fact]
public void When_requesting_a_DSL_instance_will_first_try_to_get_from_cache()
{
using (mocks.Record())
@@ -84,15 +82,13 @@ public void When_requesting_a_DSL_instance_will_first_try_to_get_from_cache()
}
}
- [Test]
- [ExpectedException(typeof (InvalidOperationException),
- "Could not find an engine to process type: System.IDisposable")]
+ [Fact]
public void When_try_to_get_a__non_existant_dsl_should_throw()
{
- factory.Create<IDisposable>(testUrl);
+ Assert.Throws<InvalidOperationException>("Could not find an engine to process type: System.IDisposable", () => factory.Create<IDisposable>(testUrl));
}
- [Test]
+ [Fact]
public void When_request_a_DSL_isntance_will_ask_engine_to_create_it()
{
using (mocks.Record())
@@ -116,7 +112,7 @@ public void When_request_a_DSL_isntance_will_ask_engine_to_create_it()
}
}
- [Test]
+ [Fact]
public void When_DSL_engine_successfully_compiled_will_register_all_types_in__the_cache()
{
using (mocks.Record())
@@ -133,8 +129,7 @@ public void When_DSL_engine_successfully_compiled_will_register_all_types_in__th
}
}
- [Test]
- [ExpectedException(typeof (InvalidOperationException))]
+ [Fact]
public void When_Type_does_not_exist_in_compiled_assembly_should_thorw()
{
using (mocks.Record())
@@ -146,11 +141,11 @@ public void When_Type_does_not_exist_in_compiled_assembly_should_thorw()
factory.Register<IDisposable>(mockedDslEngine);
using (mocks.Playback())
{
- factory.Create<IDisposable>(testUrl);
+ Assert.Throws<InvalidOperationException>(() => factory.Create<IDisposable>(testUrl));
}
}
- [Test]
+ [Fact]
public void When_create_a_DSL_instance_should_ask_engine_to_create_new_instance()
{
using (mocks.Record())
@@ -168,7 +163,7 @@ public void When_create_a_DSL_instance_should_ask_engine_to_create_new_instance(
}
}
- [Test]
+ [Fact]
public void Should_be_able_to_pass_parameters_to_the_constructor_of_the_Type()
{
using (mocks.Record())
View
9 Rhino.DSL.Tests/DslFactoryFixture/DslFixtureIntegrationFixture.cs
@@ -5,15 +5,14 @@ namespace Rhino.DSL.Tests.DslFactoryFixture
using System.IO;
using System.Threading;
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class DslFixtureIntegrationFixture
{
private readonly string path =
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"DslFactoryFixture\Integration.boo");
- [Test]
+ [Fact]
public void When_file_is_changed_will_automatically_get_new_version()
{
DslFactory factory = new DslFactory();
@@ -23,7 +22,7 @@ public void When_file_is_changed_will_automatically_get_new_version()
DemoDslBase demo = factory.Create<DemoDslBase>(path);
demo.Execute();
- Assert.AreEqual("test", demo.Messages[0]);
+ Assert.Equal("test", demo.Messages[0]);
File.WriteAllText(path,"log 'changed'");
for (int i = 0; i < 5; i++)
@@ -34,7 +33,7 @@ public void When_file_is_changed_will_automatically_get_new_version()
if(demo.Messages[0]=="changed")
break;
}
- Assert.AreEqual("changed", demo.Messages[0]);
+ Assert.Equal("changed", demo.Messages[0]);
}
}
View
55 Rhino.DSL.Tests/ExternalDSL/ExternalDSLFixture.cs
@@ -1,69 +1,68 @@
namespace Rhino.DSL.Tests.ExternalDSL
{
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class ExternalDSLFixture
{
private readonly string sentence =
@"When a customer is preferred and the order exceeds 1000 then apply a .05 discount and apply free shipping.";
- [Test]
+ [Fact]
public void WillRemoveNoiseWordsFromSentence()
{
string withoutNoise = Parser.RemoveNoiseWords(sentence);
string expected = "When customer is preferred and order exceeds 1000 then apply .05 discount and apply free shipping";
- Assert.AreEqual(expected, withoutNoise);
+ Assert.Equal(expected, withoutNoise);
}
- [Test]
+ [Fact]
public void WillHaveTwoActionsInWhenClause()
{
WhenThenClause parsed = new Parser().Parse(sentence);
- Assert.AreEqual(2, parsed.When.Count);
+ Assert.Equal(2, parsed.When.Count);
}
- [Test]
+ [Fact]
public void EachWhenItemShouldBeSplitToObjectOperatorAndValue()
{
WhenThenClause parsed = new Parser().Parse(sentence);
- Assert.AreEqual("customer", parsed.When[0].Left);
- Assert.AreEqual("is", parsed.When[0].Operator);
- Assert.AreEqual("preferred", parsed.When[0].Right);
- Assert.AreEqual("order", parsed.When[1].Left);
- Assert.AreEqual("exceeds", parsed.When[1].Operator);
- Assert.AreEqual("1000", parsed.When[1].Right);
+ Assert.Equal("customer", parsed.When[0].Left);
+ Assert.Equal("is", parsed.When[0].Operator);
+ Assert.Equal("preferred", parsed.When[0].Right);
+ Assert.Equal("order", parsed.When[1].Left);
+ Assert.Equal("exceeds", parsed.When[1].Operator);
+ Assert.Equal("1000", parsed.When[1].Right);
}
- [Test]
+ [Fact]
public void WillHaveTwoActionsInThenClause()
{
WhenThenClause parsed = new Parser().Parse(sentence);
- Assert.AreEqual(2, parsed.Then.Count);
+ Assert.Equal(2, parsed.Then.Count);
}
- [Test]
+ [Fact]
public void EachThenItemShouldBeSplitToObjectOperatorAndValue()
{
WhenThenClause parsed = new Parser().Parse(sentence);
- Assert.AreEqual("apply", parsed.Then[0].Left);
- Assert.AreEqual("discount", parsed.Then[0].Operator);
- Assert.AreEqual(".05", parsed.Then[0].Right);
- Assert.AreEqual("apply", parsed.Then[1].Left);
- Assert.AreEqual("shipping", parsed.Then[1].Operator);
- Assert.AreEqual("free", parsed.Then[1].Right);
+ Assert.Equal("apply", parsed.Then[0].Left);
+ Assert.Equal("discount", parsed.Then[0].Operator);
+ Assert.Equal(".05", parsed.Then[0].Right);
+ Assert.Equal("apply", parsed.Then[1].Left);
+ Assert.Equal("shipping", parsed.Then[1].Operator);
+ Assert.Equal("free", parsed.Then[1].Right);
}
- [Test]
+ [Fact]
public void CanExecuteSimpleAction()
{
DslExecuter executer = new DslExecuter();
executer.AddParameter("book", new DemoBook());
object result = executer.Invoke(new ActionExpression("book", "pageTo", "51"));
- Assert.AreEqual(51, result);
+ Assert.Equal(51, result);
}
- [Test]
+ [Fact]
public void CanExecuteWhenStatement()
{
ExternalDSLDemo dsl = new ExternalDSLDemo(sentence);
@@ -72,7 +71,7 @@ public void CanExecuteWhenStatement()
dsl.Execute();
}
- [Test]
+ [Fact]
public void CanExecuteThenStatement()
{
ExternalDSLDemo dsl = new ExternalDSLDemo(sentence);
@@ -86,8 +85,8 @@ public void CanExecuteThenStatement()
dsl.AddParameter("apply", new ApplyCommands(order));
dsl.Execute();
- Assert.AreEqual(4750, order.TotalCost);
- Assert.AreEqual(ShippingType.Free, order.ShippingType);
+ Assert.Equal(4750, order.TotalCost);
+ Assert.Equal(ShippingType.Free, order.ShippingType);
}
}
View
21 Rhino.DSL.Tests/FeaturesDSL/WithActionsDSLFixture.cs
@@ -1,40 +1,39 @@
namespace Rhino.DSL.Tests.FeaturesDSL
{
using Boo.Lang.Compiler;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class WithActionsDSLFixture : BaseDslFixture<WithActionsDslEngine,WithAction>
{
- [Test]
+ [Fact]
public void UsingWrongCase()
{
WithAction[] actions = factory.CreateAll<WithAction>(@"FeaturesDSL/hasAction.boo");
- Assert.AreEqual(1, actions.Length);
+ Assert.Equal(1, actions.Length);
}
- [Test]
+ [Fact]
public void CanTryToCreateNonExistingScript()
{
WithAction action = factory.TryCreate<WithAction>(@"FeaturesDSL/DoesNotExists.boo");
- Assert.IsNull(action);
+ Assert.Null(action);
}
- [Test]
+ [Fact]
public void CanUseGeneratedProperty()
{
string action = base.factory.Create<WithAction>(@"FeaturesDSL/HasAction.boo").Action;
- Assert.AreEqual("/action/with/name", action);
+ Assert.Equal("/action/with/name", action);
}
- [Test]
+ [Fact]
public void CanPassParametersViaCtor()
{
string name = base.factory.Create<WithAction>(@"FeaturesDSL/HasAction.boo", "test ctor").Name;
- Assert.AreEqual("test ctor", name);
+ Assert.Equal("test ctor", name);
}
- [Test]
+ [Fact]
public void CanUseSymbols()
{
WithAction action = factory.Create<WithAction>(@"FeaturesDSL/HasAction.boo", "test ctor");
View
31 Rhino.DSL.Tests/MethodSubstitutionBaseClassTestFixture.cs
@@ -3,54 +3,51 @@
using System.Reflection;
using System.Text;
using Boo.Lang.Compiler;
-using MbUnit.Framework;
+using Xunit;
namespace Rhino.DSL.Tests
{
- [TestFixture]
public class MethodSubstitutionBaseClassTestFixture : BaseCompilerTestFixture
{
- private Assembly assembly;
+ private readonly Assembly assembly;
- [SetUp]
- public override void SetUp()
- {
- base.SetUp();
- assembly = Compile(@"MethodSubstitutionBaseClass.boo");
- }
+ public MethodSubstitutionBaseClassTestFixture()
+ {
+ assembly = Compile(@"MethodSubstitutionBaseClass.boo");
+ }
- [Test]
+ [Fact]
public void CanCreateAnonymousBaseClass()
{
- Assert.IsNotNull(assembly);
+ Assert.NotNull(assembly);
}
- [Test]
+ [Fact]
public void WillCreateTypeWithSameNameAsFile()
{
- Assert.IsNotNull(
+ Assert.NotNull(
assembly.GetType("MethodSubstitutionBaseClass")
);
}
- [Test]
+ [Fact]
public void CanExecuteNewTypeAndGetCodeFromFile()
{
MyMethodSubstitutionBaseClass instance = (MyMethodSubstitutionBaseClass)assembly.CreateInstance("MethodSubstitutionBaseClass");
instance.SomeAbstractMethod();
instance.SomeVirtualMethod();
- Assert.AreEqual("abstract" + Environment.NewLine +
+ Assert.Equal("abstract" + Environment.NewLine +
"virtual" + Environment.NewLine,
consoleOutput.GetStringBuilder().ToString());
}
- [Test]
+ [Fact]
public void GlobalAssignmentExpressionStatementIsFieldOnType()
{
MyMethodSubstitutionBaseClass instance = (MyMethodSubstitutionBaseClass)assembly.CreateInstance("MethodSubstitutionBaseClass");
FieldInfo fi = instance.GetType().GetField("variableThatShouldBecomeAField", BindingFlags.NonPublic | BindingFlags.Instance);
- Assert.IsNotNull(fi);
+ Assert.NotNull(fi);
}
protected override void AddCompilerSteps(BooCompiler compiler, string filename, CompilerPipeline pipeline)
View
35 Rhino.DSL.Tests/OrderDSL/OrderDSLFixture.cs
@@ -2,26 +2,25 @@ namespace Rhino.DSL.Tests.OrderDSL
{
using System.Reflection;
using Boo.Lang.Compiler.Pipelines;
- using MbUnit.Framework;
+ using Xunit;
- [TestFixture]
public class OrderDSLFixture : BaseDslFixture<OrderActionsDslEngine, BaseOrderActionsDSL>
{
- [Test]
+ [Fact]
public void CanCompile()
{
- Assert.IsNotNull(factory.Create<BaseOrderActionsDSL>(@"OrderDSL\OrderBusinessRules.boo"));
+ Assert.NotNull(factory.Create<BaseOrderActionsDSL>(@"OrderDSL\OrderBusinessRules.boo"));
}
- [Test]
+ [Fact]
public void CanCompile_WithDifferentOperations()
{
BaseOrderActionsDSL dsl = factory.Create<BaseOrderActionsDSL>(@"OrderDSL\OrderBusinessRules_DifferentOperations.boo");
- Assert.IsNotNull(dsl);
+ Assert.NotNull(dsl);
}
- [Test]
+ [Fact]
public void
When_User_is_preferred_and_Order_total_cost_is_above_1000_should_apply_free_shipping_and_5_precent_discount()
{
@@ -34,12 +33,12 @@ public void
instance.Prepare();
instance.Execute();
- Assert.AreEqual(5m, instance.discountPrecentage);
- Assert.IsTrue(instance.shouldApplyFreeShipping);
- Assert.IsFalse(instance.shouldSuggestUpgradeToPreferred);
+ Assert.Equal(5m, instance.discountPrecentage);
+ Assert.True(instance.shouldApplyFreeShipping);
+ Assert.False(instance.shouldSuggestUpgradeToPreferred);
}
- [Test]
+ [Fact]
public void
When_User_is_not_preferred_and_order_total_cost_above_100_should_apply_for_free_shipping_and_suggest_upgrade_to_preferred
()
@@ -53,12 +52,12 @@ public void
instance.Prepare();
instance.Execute();
- Assert.AreEqual(0m, instance.discountPrecentage);
- Assert.IsTrue(instance.shouldApplyFreeShipping);
- Assert.IsTrue(instance.shouldSuggestUpgradeToPreferred);
+ Assert.Equal(0m, instance.discountPrecentage);
+ Assert.True(instance.shouldApplyFreeShipping);
+ Assert.True(instance.shouldSuggestUpgradeToPreferred);
}
- [Test]
+ [Fact]
public void When_User_is_not_preferred_and_order_total_cost_is_above_500_should_apply_for_free_shipping()
{
BaseOrderActionsDSL instance =
@@ -70,9 +69,9 @@ public void When_User_is_not_preferred_and_order_total_cost_is_above_500_should_
instance.Prepare();
instance.Execute();
- Assert.AreEqual(0m, instance.discountPrecentage);
- Assert.IsTrue(instance.shouldApplyFreeShipping);
- Assert.IsFalse(instance.shouldSuggestUpgradeToPreferred);
+ Assert.Equal(0m, instance.discountPrecentage);
+ Assert.True(instance.shouldApplyFreeShipping);
+ Assert.False(instance.shouldSuggestUpgradeToPreferred);
}
}
}
View
11 Rhino.DSL.Tests/Rhino.DSL.Tests-v2008.csproj
@@ -2,7 +2,7 @@
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
+ <ProductVersion>9.0.21022</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9BCD2185-4653-45D7-99B2-3043E55A6746}</ProjectGuid>
<OutputType>Library</OutputType>
@@ -42,17 +42,17 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedLibs\Boo.Lang.Compiler.dll</HintPath>
</Reference>
- <Reference Include="MbUnit.Framework, Version=1.0.2700.29885, Culture=neutral, PublicKeyToken=5e72ecd30bc408d5">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\SharedLibs\MbUnit.Framework.dll</HintPath>
- </Reference>
<Reference Include="Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\SharedLibs\Rhino.Mocks.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
+ <Reference Include="xunit, Version=1.1.0.1323, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\SharedLibs\xunit.dll</HintPath>
+ </Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AnonymousBaseClassTestFixture.cs" />
@@ -82,7 +82,6 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SchedulingDSL\BaseScheduler.cs" />
<Compile Include="SchedulingDSL\SchedulingDslEngine.cs" />
- <Compile Include="SchedulingDSL\SchedulingDSLFixture.cs" />
<Compile Include="SchedulingDSL\WebSite.cs" />
<Compile Include="TransformerCompilerStepTestFixture.cs" />
</ItemGroup>
View
80 Rhino.DSL.Tests/SchedulingDSL/SchedulingDSLFixture.cs
@@ -1,80 +0,0 @@
-namespace Rhino.DSL.Tests.SchedulingDSL
-{
- using System;
- using MbUnit.Framework;
-
- [TestFixture]
- [Ignore("reason")]
- public class SchedulingDSLFixture : BaseDslFixture<SchedulingDslEngine, BaseScheduler>
- {
- [Test]
- public void CanGetAllDslInstancesInDirectory()
- {
- BaseScheduler[] all = factory.CreateAll<BaseScheduler>(@"SchedulingDSL\");
- Assert.AreEqual(2, all.Length);
- }
-
- [Test]
- public void CanGetAllDslInstancesInDirectory_WhenCalledMultipleTimes()
- {
- BaseScheduler[] all = factory.CreateAll<BaseScheduler>(@"SchedulingDSL\");
- Assert.AreEqual(2, all.Length);
- all = factory.CreateAll<BaseScheduler>(@"SchedulingDSL\");
- Assert.AreEqual(2, all.Length);
- }
-
- [Test]
- public void CanCompileFile()
- {
- Assert.IsNotNull(factory.Create<BaseScheduler>(@"SchedulingDSL\validateWebSiteUp.boo"));
- }
-
- [Test]
- public void CanCreateInstanceOfScheduler()
- {
- object instance = factory.Create<BaseScheduler>(@"SchedulingDSL\validateWebSiteUp.boo");
- Assert.IsNotNull(instance);
- }
-
- [Test]
- public void PreparingInstanceWillCauseValuesToFillFromDSL()
- {
- BaseScheduler instance = factory.Create<BaseScheduler>(@"SchedulingDSL\validateWebSiteDown.boo");
- instance.Prepare();
-
- Assert.AreEqual(instance.TaskName, "warn if website is not alive");
- Assert.AreEqual(TimeSpan.FromMinutes(3), instance.Repetition);
- Assert.AreEqual(new DateTime(2000, 1, 1), instance.StartingTime);
- }
-
- [Test]
- public void WhenClause_WillRunCodeFromDSL()
- {
- BaseScheduler instance = factory.Create<BaseScheduler>(@"SchedulingDSL\validateWebSiteDown.boo");
- instance.Prepare();
-
- WebSite.aliveValue = true; // will cause when to return false
-
- instance.Run();
-
- Assert.IsFalse(instance.ActionExecuted);
- Assert.AreEqual("http://example.org", WebSite.requestedUrl);
- }
-
- [Test]
- public void WhenClause_WhenReturnsTrue_WillCallAction()
- {
- BaseScheduler instance = factory.Create<BaseScheduler>(@"SchedulingDSL\validateWebSiteDown.boo");
- instance.Prepare();
-
- WebSite.aliveValue = false; // will cause when to return true
-
- instance.Run();
-
- Assert.IsTrue(instance.ActionExecuted);
-
- Assert.AreEqual("admin@example.org", instance.WhoToNotify);
- Assert.AreEqual("server down!", instance.NotifyMessage);
- }
- }
-}
View
21 Rhino.DSL.Tests/TransformerCompilerStepTestFixture.cs
@@ -1,30 +1,25 @@
using System;
-using System.Collections.Generic;
-using System.Text;
using Boo.Lang.Compiler;
using Boo.Lang.Compiler.Ast;
-using MbUnit.Framework;
+using Xunit;
namespace Rhino.DSL.Tests
{
- [TestFixture]
public class TransformerCompilerStepTestFixture
{
- [Test]
- [ExpectedException(typeof(ArgumentNullException))]
+ [Fact]
public void CtorRequiresNonNullArgument()
{
- new TransformerCompilerStep(null);
+ Assert.Throws<ArgumentNullException>(()=>new TransformerCompilerStep(null));
}
- [Test]
- [ExpectedException(typeof(ArgumentException))]
+ [Fact]
public void CtorRequiresAtLeastOneTransformer()
{
- new TransformerCompilerStep(new DepthFirstTransformer[] {});
- }
+ Assert.Throws<ArgumentException>(() => new TransformerCompilerStep(new DepthFirstTransformer[] { }));
+ }
- [Test]
+ [Fact]
public void TransformerIsAppliedToCompileUnit()
{
StubTransformer transformer = new StubTransformer();
@@ -38,7 +33,7 @@ public void TransformerIsAppliedToCompileUnit()
compiler.Parameters.Pipeline.Insert(0, transformerStep);
compiler.Run(unit);
- Assert.IsTrue(transformer.CompileUnitVisited);
+ Assert.True(transformer.CompileUnitVisited);
}
private class StubTransformer: DepthFirstTransformer
View
26 Rhino.DSL.sln
@@ -1,26 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 9.00
-# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rhino.DSL", "Rhino.DSL\Rhino.DSL.csproj", "{B788F27C-E00A-434A-81AA-1D592E030934}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rhino.DSL.Tests", "Rhino.DSL.Tests\Rhino.DSL.Tests.csproj", "{9BCD2185-4653-45D7-99B2-3043E55A6746}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {B788F27C-E00A-434A-81AA-1D592E030934}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {B788F27C-E00A-434A-81AA-1D592E030934}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {B788F27C-E00A-434A-81AA-1D592E030934}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {B788F27C-E00A-434A-81AA-1D592E030934}.Release|Any CPU.Build.0 = Release|Any CPU
- {9BCD2185-4653-45D7-99B2-3043E55A6746}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9BCD2185-4653-45D7-99B2-3043E55A6746}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9BCD2185-4653-45D7-99B2-3043E55A6746}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9BCD2185-4653-45D7-99B2-3043E55A6746}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
View
19 SharedLibs/Makefile.am
@@ -1,19 +0,0 @@
-boodir = $(libdir)/boo
-boo_DATA = booc.exe booi.exe booish.exe booc.rsp booc.exe.config booi.exe.config booish.exe.config
-
-BOO_GAC_DLLS = Boo.Lang.dll \
- Boo.Lang.Useful.dll \
- Boo.Lang.Extensions.dll \
- Boo.Lang.Compiler.dll \
- Boo.Lang.Parser.dll \
- Boo.Lang.Interpreter.dll \
- Boo.Lang.PatternMatching.dll \
- Boo.Lang.CodeDom.dll
-
-install-data-hook:
- for lib in $(BOO_GAC_DLLS); do \
- echo "$(GACUTIL) /i $${lib} $(GACUTIL_FLAGS)" ; \
- $(GACUTIL) /i $${lib} $(GACUTIL_FLAGS) || exit 1 ; \
- done
-
-EXTRA_DIST = $(BOO_GAC_DLLS) $(boo_DATA)
View
BIN SharedLibs/MbUnit.Framework.dll
Binary file not shown.
View
BIN SharedLibs/xunit.dll
Binary file not shown.
View
BIN SharedLibs/xunit.extensions.dll
Binary file not shown.
View
2,132 SharedLibs/xunit.xml
2,132 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN Tools/MbUnit/Aggregate.dll
Binary file not shown.
View
BIN Tools/MbUnit/Aggregate.pdb
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.AddIn.dll
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.Cons.exe
Binary file not shown.
View
12 Tools/MbUnit/MbUnit.Cons.exe.config
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <runtime>
- <!-- Don't kill application on first uncaught exception. -->
- <legacyUnhandledExceptionPolicy enabled="1" />
- </runtime>
-
- <startup>
- <supportedRuntime version="v2.0.50727" />
- <supportedRuntime version="v1.1.4322"/>
- </startup>
-</configuration>
View
BIN Tools/MbUnit/MbUnit.Demo.1.1.dll
Binary file not shown.
View
20 Tools/MbUnit/MbUnit.Framework.1.1.XML
@@ -1,20 +0,0 @@
-<?xml version="1.0"?>
-<doc>
- <assembly>
- <name>MbUnit.Framework.1.1</name>
- </assembly>
- <members>
- <member name="T:MbUnit.Framework.RollBackAttribute">
- <summary>
- Tags methods to execute database operation in its own database
- transaction.
- </summary>
- <remarks>
- <para>
- This attribute was invented by <b>Roy Osherove</b> (
- http://weblogs.asp.net/rosherove/).
- </para>
- </remarks>
- </member>
- </members>
-</doc>
View
BIN Tools/MbUnit/MbUnit.Framework.1.1.dll
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.Framework.2.0.dll
Binary file not shown.
View
10,995 Tools/MbUnit/MbUnit.Framework.XML
0 additions, 10,995 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN Tools/MbUnit/MbUnit.Framework.dll
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.GUI.exe
Binary file not shown.
View
14 Tools/MbUnit/MbUnit.GUI.exe.config
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <runtime>
- <!-- Don't kill application on first uncaught exception. -->
- <legacyUnhandledExceptionPolicy enabled="1" />
- </runtime>
- <startup>
- <supportedRuntime version="v2.0.50727" />
- <supportedRuntime version="v1.1.4322"/>
- </startup>
- <appSettings>
- <add key="restorePreviousState" value="true" />
- </appSettings>
-</configuration>
View
BIN Tools/MbUnit/MbUnit.MSBuild.Tasks.dll
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.Tasks.dll
Binary file not shown.
View
BIN Tools/MbUnit/MbUnit.Tests.1.1.dll
Binary file not shown.
View
BIN Tools/MbUnit/NAnt.Core.dll
Binary file not shown.
View
14,462 Tools/MbUnit/NAnt.Core.xml
0 additions, 14,462 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN Tools/MbUnit/NGraphviz.Helpers.dll
Binary file not shown.
View
BIN Tools/MbUnit/NGraphviz.Layout.dll
Binary file not shown.
View
BIN Tools/MbUnit/NGraphviz.dll
Binary file not shown.
View
BIN Tools/MbUnit/QuickGraph.Algorithms.Graphviz.dll
Binary file not shown.
View
BIN Tools/MbUnit/QuickGraph.Algorithms.dll
Binary file not shown.
View
BIN Tools/MbUnit/QuickGraph.dll
Binary file not shown.
View
BIN Tools/MbUnit/Refly.dll
Binary file not shown.
View
BIN Tools/MbUnit/TestDriven.Framework.dll
Binary file not shown.
View
5,483 Tools/MbUnit/TestFu.XML
0 additions, 5,483 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN Tools/MbUnit/TestFu.dll
Binary file not shown.
View
BIN Tools/MbUnit/XsdTidy.exe
Binary file not shown.
View
BIN Tools/MbUnit/log4net.dll
Binary file not shown.
View
BIN Tools/MbUnit/uninst.exe
Binary file not shown.
View
6 Tools/MbUnit/users.txt
@@ -1,6 +0,0 @@
-Id Name Email
-1 ayende ayende@example.org
-2 foo foo@example.org
-3 bar bar@example.org
-4 brak brak@example.org
-5 snar snar@example.org
View
BIN Tools/xUnit/XUnit.NAntTasks.dll
Binary file not shown.
View
BIN Tools/xUnit/xunit.console.exe
Binary file not shown.
View
21 Tools/xUnit/xunit.console.exe.config
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+
+ <configSections>
+ <section name="xunit" type="Xunit.ConsoleClient.XunitConsoleConfigurationSection, xunit.console"/>
+ </configSections>
+
+ <xunit>
+ <transforms>
+ <add
+ commandline="html"
+ xslfile="HTML.xslt"
+ description="output results to HTML file"/>
+ <add
+ commandline="nunit"
+ xslfile="NUnitXml.xslt"
+ description="output results to NUnit-style XML file"/>
+ </transforms>
+ </xunit>
+
+</configuration>
View
BIN Tools/xUnit/xunit.dll
Binary file not shown.
View
BIN Tools/xUnit/xunit.extensions.dll
Binary file not shown.
View
705 Tools/xUnit/xunit.extensions.xml
@@ -0,0 +1,705 @@
+<?xml version="1.0"?>
+<doc>
+ <assembly>
+ <name>xunit.extensions</name>
+ </assembly>
+ <members>
+ <member name="T:Xunit.Extensions.Assertions">
+ <summary>
+ A wrapper for Assert which is used by <see cref="T:Xunit.Extensions.TestClass"/>.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Contains``1(``0,System.Collections.Generic.IEnumerable{``0})">
+ <summary>
+ Verifies that a collection contains a given object.
+ </summary>
+ <typeparam name="T">The type of the object to be verified</typeparam>
+ <param name="expected">The object expected to be in the collection</param>
+ <param name="collection">The collection to be inspected</param>
+ <exception cref="T:Xunit.Sdk.ContainsException">Thrown when the object is not present in the collection</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Contains``1(``0,System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that a collection contains a given object, using a comparer.
+ </summary>
+ <typeparam name="T">The type of the object to be verified</typeparam>
+ <param name="expected">The object expected to be in the collection</param>
+ <param name="collection">The collection to be inspected</param>
+ <param name="comparer">The comparer used to equate objects in the collection with the expected object</param>
+ <exception cref="T:Xunit.Sdk.ContainsException">Thrown when the object is not present in the collection</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Contains(System.String,System.String)">
+ <summary>
+ Verifies that a string contains a given sub-string, using the current culture.
+ </summary>
+ <param name="expectedSubString">The sub-string expected to be in the string</param>
+ <param name="actualString">The string to be inspected</param>
+ <exception cref="T:Xunit.Sdk.ContainsException">Thrown when the sub-string is not present inside the string</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Contains(System.String,System.String,System.StringComparison)">
+ <summary>
+ Verifies that a string contains a given sub-string, using the given comparison type.
+ </summary>
+ <param name="expectedSubString">The sub-string expected to be in the string</param>
+ <param name="actualString">The string to be inspected</param>
+ <param name="comparisonType">The type of string comparison to perform</param>
+ <exception cref="T:Xunit.Sdk.ContainsException">Thrown when the sub-string is not present inside the string</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.DoesNotContain``1(``0,System.Collections.Generic.IEnumerable{``0})">
+ <summary>
+ Verifies that a collection does not contain a given object.
+ </summary>
+ <typeparam name="T">The type of the object to be compared</typeparam>
+ <param name="expected">The object that is expected not to be in the collection</param>
+ <param name="collection">The collection to be inspected</param>
+ <exception cref="T:Xunit.Sdk.DoesNotContainException">Thrown when the object is present inside the container</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.DoesNotContain``1(``0,System.Collections.Generic.IEnumerable{``0},System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that a collection does not contain a given object, using a comparer.
+ </summary>
+ <typeparam name="T">The type of the object to be compared</typeparam>
+ <param name="expected">The object that is expected not to be in the collection</param>
+ <param name="collection">The collection to be inspected</param>
+ <param name="comparer">The comparer used to equate objects in the collection with the expected object</param>
+ <exception cref="T:Xunit.Sdk.DoesNotContainException">Thrown when the object is present inside the container</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.DoesNotContain(System.String,System.String)">
+ <summary>
+ Verifies that a string does not contain a given sub-string, using the current culture.
+ </summary>
+ <param name="expectedSubString">The sub-string which is expected not to be in the string</param>
+ <param name="actualString">The string to be inspected</param>
+ <exception cref="T:Xunit.Sdk.DoesNotContainException">Thrown when the sub-string is present inside the string</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.DoesNotContain(System.String,System.String,System.StringComparison)">
+ <summary>
+ Verifies that a string does not contain a given sub-string, using the current culture.
+ </summary>
+ <param name="expectedSubString">The sub-string which is expected not to be in the string</param>
+ <param name="actualString">The string to be inspected</param>
+ <param name="comparisonType">The type of string comparison to perform</param>
+ <exception cref="T:Xunit.Sdk.DoesNotContainException">Thrown when the sub-string is present inside the given string</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.DoesNotThrow(Xunit.Assert.ThrowsDelegate)">
+ <summary>
+ Verifies that a block of code does not throw any exceptions.
+ </summary>
+ <param name="testCode">A delegate to the code to be tested</param>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Empty(System.Collections.IEnumerable)">
+ <summary>
+ Verifies that a collection is empty.
+ </summary>
+ <param name="collection">The collection to be inspected</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when the collection is null</exception>
+ <exception cref="T:Xunit.Sdk.EmptyException">Thrown when the collection is not empty</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Equal``1(``0,``0)">
+ <summary>
+ Verifies that two objects are equal, using a default comparer.
+ </summary>
+ <typeparam name="T">The type of the objects to be compared</typeparam>
+ <param name="expected">The expected value</param>
+ <param name="actual">The value to be compared against</param>
+ <exception cref="T:Xunit.Sdk.EqualException">Thrown when the objects are not equal</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Equal``1(``0,``0,System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that two objects are equal, using a custom comparer.
+ </summary>
+ <typeparam name="T">The type of the objects to be compared</typeparam>
+ <param name="expected">The expected value</param>
+ <param name="actual">The value to be compared against</param>
+ <param name="comparer">The comparer used to compare the two objects</param>
+ <exception cref="T:Xunit.Sdk.EqualException">Thrown when the objects are not equal</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Equals(System.Object)">
+ <summary>Do not call this method. Call Assert.Equal() instead.</summary>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.False(System.Boolean)">
+ <summary>
+ Verifies that the condition is false.
+ </summary>
+ <param name="condition">The condition to be tested</param>
+ <exception cref="T:Xunit.Sdk.FalseException">Thrown if the condition is not false</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.False(System.Boolean,System.String)">
+ <summary>
+ Verifies that the condition is false.
+ </summary>
+ <param name="condition">The condition to be tested</param>
+ <param name="userMessage">The message to show when the condition is not false</param>
+ <exception cref="T:Xunit.Sdk.FalseException">Thrown if the condition is not false</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.GetHashCode">
+ <summary>
+ Serves as a hash function for a particular type.
+ </summary>
+ <returns>A hash code for the current <see cref="T:System.Object"/>.</returns>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.InRange``1(``0,``0,``0)">
+ <summary>
+ Verifies that a value is within a given range.
+ </summary>
+ <typeparam name="T">The type of the value to be compared</typeparam>
+ <param name="actual">The actual value to be evaluated</param>
+ <param name="low">The (inclusive) low value of the range</param>
+ <param name="high">The (inclusive) high value of the range</param>
+ <exception cref="T:Xunit.Sdk.InRangeException">Thrown when the value is not in the given range</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.InRange``1(``0,``0,``0,System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that a value is within a given range, using a comparer.
+ </summary>
+ <typeparam name="T">The type of the value to be compared</typeparam>
+ <param name="actual">The actual value to be evaluated</param>
+ <param name="low">The (inclusive) low value of the range</param>
+ <param name="high">The (inclusive) high value of the range</param>
+ <param name="comparer">The comparer used to evaluate the value's range</param>
+ <exception cref="T:Xunit.Sdk.InRangeException">Thrown when the value is not in the given range</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.IsNotType``1(System.Object)">
+ <summary>
+ Verifies that an object is not exactly the given type.
+ </summary>
+ <typeparam name="T">The type the object should not be</typeparam>
+ <param name="object">The object to be evaluated</param>
+ <exception cref="T:Xunit.Sdk.IsTypeException">Thrown when the object is the given type</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.IsNotType(System.Type,System.Object)">
+ <summary>
+ Verifies that an object is not exactly the given type.
+ </summary>
+ <param name="expectedType">The type the object should not be</param>
+ <param name="object">The object to be evaluated</param>
+ <exception cref="T:Xunit.Sdk.IsTypeException">Thrown when the object is the given type</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.IsType``1(System.Object)">
+ <summary>
+ Verifies that an object is exactly the given type (and not a derived type).
+ </summary>
+ <typeparam name="T">The type the object should be</typeparam>
+ <param name="object">The object to be evaluated</param>
+ <returns>The object, casted to type T when successful</returns>
+ <exception cref="T:Xunit.Sdk.IsTypeException">Thrown when the object is not the given type</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.IsType(System.Type,System.Object)">
+ <summary>
+ Verifies that an object is exactly the given type (and not a derived type).
+ </summary>
+ <param name="expectedType">The type the object should be</param>
+ <param name="object">The object to be evaluated</param>
+ <exception cref="T:Xunit.Sdk.IsTypeException">Thrown when the object is not the given type</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotEmpty(System.Collections.IEnumerable)">
+ <summary>
+ Verifies that a collection is not empty.
+ </summary>
+ <param name="collection">The collection to be inspected</param>
+ <exception cref="T:System.ArgumentNullException">Thrown when a null collection is passed</exception>
+ <exception cref="T:Xunit.Sdk.NotEmptyException">Thrown when the collection is empty</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotEqual``1(``0,``0)">
+ <summary>
+ Verifies that two objects are not equal, using a default comparer.
+ </summary>
+ <typeparam name="T">The type of the objects to be compared</typeparam>
+ <param name="expected">The expected object</param>
+ <param name="actual">The actual object</param>
+ <exception cref="T:Xunit.Sdk.NotEqualException">Thrown when the objects are equal</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotEqual``1(``0,``0,System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that two objects are not equal, using a custom comparer.
+ </summary>
+ <typeparam name="T">The type of the objects to be compared</typeparam>
+ <param name="expected">The expected object</param>
+ <param name="actual">The actual object</param>
+ <param name="comparer">The comparer used to examine the objects</param>
+ <exception cref="T:Xunit.Sdk.NotEqualException">Thrown when the objects are equal</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotInRange``1(``0,``0,``0)">
+ <summary>
+ Verifies that a value is not within a given range, using the default comparer.
+ </summary>
+ <typeparam name="T">The type of the value to be compared</typeparam>
+ <param name="actual">The actual value to be evaluated</param>
+ <param name="low">The (inclusive) low value of the range</param>
+ <param name="high">The (inclusive) high value of the range</param>
+ <exception cref="T:Xunit.Sdk.NotInRangeException">Thrown when the value is in the given range</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotInRange``1(``0,``0,``0,System.Collections.Generic.IComparer{``0})">
+ <summary>
+ Verifies that a value is not within a given range, using a comparer.
+ </summary>
+ <typeparam name="T">The type of the value to be compared</typeparam>
+ <param name="actual">The actual value to be evaluated</param>
+ <param name="low">The (inclusive) low value of the range</param>
+ <param name="high">The (inclusive) high value of the range</param>
+ <param name="comparer">The comparer used to evaluate the value's range</param>
+ <exception cref="T:Xunit.Sdk.NotInRangeException">Thrown when the value is in the given range</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotNull(System.Object)">
+ <summary>
+ Verifies that an object reference is not null.
+ </summary>
+ <param name="object">The object to be validated</param>
+ <exception cref="T:Xunit.Sdk.NotNullException">Thrown when the object is not null</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.NotSame(System.Object,System.Object)">
+ <summary>
+ Verifies that two objects are not the same instance.
+ </summary>
+ <param name="expected">The expected object instance</param>
+ <param name="actual">The actual object instance</param>
+ <exception cref="T:Xunit.Sdk.NotSameException">Thrown when the objects are the same instance</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Null(System.Object)">
+ <summary>
+ Verifies that an object reference is null.
+ </summary>
+ <param name="object">The object to be inspected</param>
+ <exception cref="T:Xunit.Sdk.NullException">Thrown when the object reference is not null</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Same(System.Object,System.Object)">
+ <summary>
+ Verifies that two objects are the same instance.
+ </summary>
+ <param name="expected">The expected object instance</param>
+ <param name="actual">The actual object instance</param>
+ <exception cref="T:Xunit.Sdk.SameException">Thrown when the objects are not the same instance</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Throws``1(Xunit.Assert.ThrowsDelegate)">
+ <summary>
+ Verifies that the exact exception is thrown (and not a derived exception type).
+ </summary>
+ <typeparam name="T">The type of the exception expected to be thrown</typeparam>
+ <param name="testCode">A delegate to the code to be tested</param>
+ <returns>The exception that was thrown, when successful</returns>
+ <exception cref="T:Xunit.Sdk.ThrowsException">Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Throws``1(System.String,Xunit.Assert.ThrowsDelegate)">
+ <summary>
+ Verifies that the exact exception is thrown (and not a derived exception type).
+ </summary>
+ <typeparam name="T">The type of the exception expected to be thrown</typeparam>
+ <param name="userMessage">The message to be shown if the test fails</param>
+ <param name="testCode">A delegate to the code to be tested</param>
+ <returns>The exception that was thrown, when successful</returns>
+ <exception cref="T:Xunit.Sdk.ThrowsException">Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.Throws(System.Type,Xunit.Assert.ThrowsDelegate)">
+ <summary>
+ Verifies that the exact exception is thrown (and not a derived exception type).
+ </summary>
+ <param name="exceptionType">The type of the exception expected to be thrown</param>
+ <param name="testCode">A delegate to the code to be tested</param>
+ <returns>The exception that was thrown, when successful</returns>
+ <exception cref="T:Xunit.Sdk.ThrowsException">Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.True(System.Boolean)">
+ <summary>
+ Verifies that an expression is true.
+ </summary>
+ <param name="condition">The condition to be inspected</param>
+ <exception cref="T:Xunit.Sdk.TrueException">Thrown when the condition is false</exception>
+ </member>
+ <member name="M:Xunit.Extensions.Assertions.True(System.Boolean,System.String)">
+ <summary>
+ Verifies that an expression is true.
+ </summary>
+ <param name="condition">The condition to be inspected</param>
+ <param name="userMessage">The message to be shown when the condition is false</param>
+ <exception cref="T:Xunit.Sdk.TrueException">Thrown when the condition is false</exception>
+ </member>
+ <member name="T:Xunit.Extensions.TestClass">
+ <summary>
+ A class which can be derived from for test classes, which bring an overridable version
+ of Assert (using the <see cref="T:Xunit.Extensions.Assertions"/> class.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.TestClass.Assert">
+ <summary>
+ Gets a class which provides assertions.
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.AssumeIdentityAttribute">
+ <summary>
+ Apply this attribute to your test method to replace the
+ <see cref="P:System.Threading.Thread.CurrentPrincipal"/> with another role.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.AssumeIdentityAttribute.#ctor(System.String)">
+ <summary>
+ Replaces the identity of the current thread with <paramref name="name"/>.
+ </summary>
+ <param name="name">The role's name</param>
+ </member>
+ <member name="M:Xunit.Extensions.AssumeIdentityAttribute.After(System.Reflection.MethodInfo)">
+ <summary>
+ Restores the original <see cref="P:System.Threading.Thread.CurrentPrincipal"/>.
+ </summary>
+ <param name="methodUnderTest">The method under test</param>
+ </member>
+ <member name="M:Xunit.Extensions.AssumeIdentityAttribute.Before(System.Reflection.MethodInfo)">
+ <summary>
+ Stores the current <see cref="P:System.Threading.Thread.CurrentPrincipal"/> and replaces it with
+ a new role identified in constructor.
+ </summary>
+ <param name="methodUnderTest">The method under test</param>
+ </member>
+ <member name="T:Xunit.Extensions.AutoRollbackAttribute">
+ <summary>
+ Apply this attribute to your test method to automatically create a
+ <see cref="T:System.Transactions.TransactionScope"/> that is rolled back when the test is
+ finished.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.AutoRollbackAttribute.After(System.Reflection.MethodInfo)">
+ <summary>
+ Rolls back the transaction.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.AutoRollbackAttribute.Before(System.Reflection.MethodInfo)">
+ <summary>
+ Creates the transaction.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.AutoRollbackAttribute.IsolationLevel">
+ <summary>
+ Gets or sets the isolation level of the transaction.
+ Default value is <see cref="P:Xunit.Extensions.AutoRollbackAttribute.IsolationLevel"/>.Unspecified.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.AutoRollbackAttribute.ScopeOption">
+ <summary>
+ Gets or sets the scope option for the transaction.
+ Default value is <see cref="T:System.Transactions.TransactionScopeOption"/>.Required.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.AutoRollbackAttribute.TimeoutInMS">
+ <summary>
+ Gets or sets the timeout of the transaction, in milliseconds.
+ By default, the transaction will not timeout.
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.ClassDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming from a class
+ which must implement IEnumerable&lt;object[]&gt;.
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.DataAttribute">
+ <summary>
+ Abstract attribute which represents a data source for a data theory.
+ Data source providers derive from this attribute and implement GetData
+ to return the data for the theory.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.DataAttribute.GetData(System.Reflection.MethodInfo,System.Type[])">
+ <summary>
+ Returns the data to be used to test the theory.
+ </summary>
+ <remarks>
+ The <paramref name="parameterTypes"/> parameter is provided so that the
+ test data can be converted to the destination parameter type when necessary.
+ Generally, data should NOT be automatically converted, UNLESS the source data
+ format does not have rich types (for example, all numbers in Excel spreadsheets
+ are returned as <see cref="T:System.Double"/> even if they are integers). Derivers of
+ this class should NOT throw exceptions for mismatched types or mismatched number
+ of parameters; the test framework will throw these exceptions at the correct
+ time.
+ </remarks>
+ <param name="methodUnderTest">The method that is being tested</param>
+ <param name="parameterTypes">The types of the parameters for the test method</param>
+ <returns>The theory data</returns>
+ </member>
+ <member name="M:Xunit.Extensions.ClassDataAttribute.#ctor(System.Type)">
+ <summary>
+ Initializes a new instance of the <see cref="T:Xunit.Extensions.ClassDataAttribute"/> class.
+ </summary>
+ <param name="class">The class that provides the data.</param>
+ </member>
+ <member name="M:Xunit.Extensions.ClassDataAttribute.GetData(System.Reflection.MethodInfo,System.Type[])">
+ <inheritdoc/>
+ </member>
+ <member name="T:Xunit.Extensions.DataAdapterDataAttribute">
+ <summary>
+ Represents an implementation of <see cref="T:Xunit.Extensions.DataAttribute"/> which uses an
+ instance of <see cref="T:System.Data.IDataAdapter"/> to get the data for a <see cref="T:Xunit.Extensions.TheoryAttribute"/>
+ decorated test method.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.DataAdapterDataAttribute.GetData(System.Reflection.MethodInfo,System.Type[])">
+ <inheritdoc/>
+ </member>
+ <member name="M:Xunit.Extensions.DataAdapterDataAttribute.ConvertParameter(System.Object,System.Type)">
+ <summary>
+ Converts a parameter to its destination parameter type, if necessary.
+ </summary>
+ <param name="parameter">The parameter value</param>
+ <param name="parameterType">The destination parameter type (null if not known)</param>
+ <returns>The converted parameter value</returns>
+ </member>
+ <member name="P:Xunit.Extensions.DataAdapterDataAttribute.DataAdapter">
+ <summary>
+ Gets the data adapter to be used to retrieve the test data.
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.InlineDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming from inline values.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.InlineDataAttribute.#ctor(System.Object[])">
+ <summary>
+ Initializes a new instance of the <see cref="T:Xunit.Extensions.InlineDataAttribute"/> class.
+ </summary>
+ <param name="dataValues">The data values to pass to the theory</param>
+ </member>
+ <member name="M:Xunit.Extensions.InlineDataAttribute.GetData(System.Reflection.MethodInfo,System.Type[])">
+ <summary>
+ Returns the data to be used to test the theory.
+ </summary>
+ <param name="methodUnderTest">The method that is being tested</param>
+ <param name="parameterTypes">The types of the parameters for the test method</param>
+ <returns>The theory data, in table form</returns>
+ </member>
+ <member name="T:Xunit.Extensions.OleDbDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming from an OLEDB connection.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.OleDbDataAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.OleDbDataAttribute"/>.
+ </summary>
+ <param name="connectionString">The OLEDB connection string to the data</param>
+ <param name="selectStatement">The SELECT statement used to return the data for the theory</param>
+ </member>
+ <member name="P:Xunit.Extensions.OleDbDataAttribute.DataAdapter">
+ <inheritdoc/>
+ </member>
+ <member name="T:Xunit.Extensions.PropertyDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming from a public static property on the test class.
+ The property must return IEnumerable&lt;object[]&gt; with the test data.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.PropertyDataAttribute.#ctor(System.String)">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.PropertyDataAttribute"/>/
+ </summary>
+ <param name="propertyName">The name of the public static property on the test class that will provide the test data</param>
+ </member>
+ <member name="M:Xunit.Extensions.PropertyDataAttribute.GetData(System.Reflection.MethodInfo,System.Type[])">
+ <summary>
+ Returns the data to be used to test the theory.
+ </summary>
+ <param name="methodUnderTest">The method that is being tested</param>
+ <param name="parameterTypes">The types of the parameters for the test method</param>
+ <returns>The theory data, in table form</returns>
+ </member>
+ <member name="T:Xunit.Extensions.SqlServerDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming a Microsoft SQL Server.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.SqlServerDataAttribute.#ctor(System.String,System.String,System.String)">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.SqlServerDataAttribute"/>, using a trusted connection.
+ </summary>
+ <param name="serverName">The server name of the Microsoft SQL Server</param>
+ <param name="databaseName">The database name</param>
+ <param name="selectStatement">The SQL SELECT statement to return the data for the data theory</param>
+ </member>
+ <member name="M:Xunit.Extensions.SqlServerDataAttribute.#ctor(System.String,System.String,System.String,System.String,System.String)">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.SqlServerDataAttribute"/>, using the provided username and password.
+ </summary>
+ <param name="serverName">The server name of the Microsoft SQL Server</param>
+ <param name="databaseName">The database name</param>
+ <param name="username">The username for the server</param>
+ <param name="password">The password for the server</param>
+ <param name="selectStatement">The SQL SELECT statement to return the data for the data theory</param>
+ </member>
+ <member name="T:Xunit.Extensions.ExcelDataAttribute">
+ <summary>
+ Provides a data source for a data theory, with the data coming a Microsoft Excel (.xls) spreadsheet.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.ExcelDataAttribute.#ctor(System.String,System.String)">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.ExcelDataAttribute"/>.
+ </summary>
+ <param name="filename">The filename of the XLS spreadsheet file; if the filename provided
+ is relative, then it is relative to the location of xunit.extensions.dll.</param>
+ <param name="selectStatement">The SELECT statement that returns the data for the theory</param>
+ </member>
+ <member name="M:Xunit.Extensions.ExcelDataAttribute.ConvertParameter(System.Object,System.Type)">
+ <inheritdoc/>
+ </member>
+ <member name="T:Xunit.Extensions.Clock">
+ <summary>
+ A wrapper around the static operations on <see cref="T:System.DateTime"/> which allows time
+ to be frozen using the <see cref="T:Xunit.Extensions.FreezeClockAttribute"/>. The clock begins in the
+ thawed state; that is, calls to <see cref="P:Xunit.Extensions.Clock.Now"/>, <see cref="P:Xunit.Extensions.Clock.Today"/>, and
+ <see cref="P:Xunit.Extensions.Clock.UtcNow"/> return current (non-frozen) values.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.Clock.Freeze">
+ <summary>
+ Freezes the clock with the current time.
+ Until <see cref="M:Xunit.Extensions.Clock.Thaw"/> is called, all calls to <see cref="P:Xunit.Extensions.Clock.Now"/>, <see cref="P:Xunit.Extensions.Clock.Today"/>, and
+ <see cref="P:Xunit.Extensions.Clock.UtcNow"/> will return the exact same values.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.Clock.FreezeLocal(System.DateTime)">
+ <summary>
+ Freezes the clock with the given date and time, considered to be local time.
+ Until <see cref="M:Xunit.Extensions.Clock.Thaw"/> is called, all calls to <see cref="P:Xunit.Extensions.Clock.Now"/>, <see cref="P:Xunit.Extensions.Clock.Today"/>, and
+ <see cref="P:Xunit.Extensions.Clock.UtcNow"/> will return the exact same values.
+ </summary>
+ <param name="localDateTime">The local date and time to freeze to</param>
+ </member>
+ <member name="M:Xunit.Extensions.Clock.FreezeUtc(System.DateTime)">
+ <summary>
+ Freezes the clock with the given date and time, considered to be Coordinated Universal Time (UTC).
+ Until <see cref="M:Xunit.Extensions.Clock.Thaw"/> is called, all calls to <see cref="P:Xunit.Extensions.Clock.Now"/>, <see cref="P:Xunit.Extensions.Clock.Today"/>, and
+ <see cref="P:Xunit.Extensions.Clock.UtcNow"/> will return the exact same values.
+ </summary>
+ <param name="utcDateTime">The UTC date and time to freeze to</param>
+ </member>
+ <member name="M:Xunit.Extensions.Clock.Thaw">
+ <summary>
+ Thaws the clock so that <see cref="P:Xunit.Extensions.Clock.Now"/>, <see cref="P:Xunit.Extensions.Clock.Today"/>, and <see cref="P:Xunit.Extensions.Clock.UtcNow"/>
+ return normal values.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.Clock.Now">
+ <summary>
+ Gets a <see cref="T:System.DateTime"/> object that is set to the current date and time on this computer,
+ expressed as the local time.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.Clock.Today">
+ <summary>
+ Gets the current date.
+ </summary>
+ </member>
+ <member name="P:Xunit.Extensions.Clock.UtcNow">
+ <summary>
+ Gets a <see cref="T:System.DateTime"/> object that is set to the current date and time on this computer,
+ expressed as the Coordinated Universal Time (UTC).
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.FreezeClockAttribute">
+ <summary>
+ Apply this attribute to your test method to freeze the time represented by the
+ <see cref="T:Xunit.Extensions.Clock"/> class.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.#ctor">
+ <summary>
+ Freeze the clock with the current date and time.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.#ctor(System.Int32,System.Int32,System.Int32)">
+ <summary>
+ Freeze the clock with the given date, considered to be local time.
+ </summary>
+ <param name="year">The frozen year</param>
+ <param name="month">The frozen month</param>
+ <param name="day">The frozen day</param>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
+ <summary>
+ Freeze the clock with the given date and time, considered to be in local time.
+ </summary>
+ <param name="year">The frozen year</param>
+ <param name="month">The frozen month</param>
+ <param name="day">The frozen day</param>
+ <param name="hour">The frozen hour</param>
+ <param name="minute">The frozen minute</param>
+ <param name="second">The frozen second</param>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.DateTimeKind)">
+ <summary>
+ Freeze the clock with the given date and time, with the given kind of time.
+ </summary>
+ <param name="year">The frozen year</param>
+ <param name="month">The frozen month</param>
+ <param name="day">The frozen day</param>
+ <param name="hour">The frozen hour</param>
+ <param name="minute">The frozen minute</param>
+ <param name="second">The frozen second</param>
+ <param name="kind">The frozen time kind</param>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.After(System.Reflection.MethodInfo)">
+ <summary>
+ Thaws the clock.
+ </summary>
+ <param name="methodUnderTest">The method under test</param>
+ </member>
+ <member name="M:Xunit.Extensions.FreezeClockAttribute.Before(System.Reflection.MethodInfo)">
+ <summary>
+ Freezes the clock.
+ </summary>
+ <param name="methodUnderTest">The method under test</param>
+ </member>
+ <member name="T:Xunit.Extensions.TheoryAttribute">
+ <summary>
+ Marks a test method as being a data theory. Data theories are tests which are fed
+ various bits of data from a data source, mapping to parameters on the test method.
+ If the data source contains multiple rows, then the test method is executed
+ multiple times (once with each data row).
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.TheoryAttribute.EnumerateTestCommands(System.Reflection.MethodInfo)">
+ <summary>
+ Creates instances of <see cref="T:Xunit.Extensions.TheoryCommand"/> which represent individual intended
+ invocations of the test method, one per data row in the data source.
+ </summary>
+ <param name="method">The method under test</param>
+ <returns>An enumerator through the desired test method invocations</returns>
+ </member>
+ <member name="T:Xunit.Extensions.TheoryCommand">
+ <summary>
+ Represents a single invocation of a data theory test method.
+ </summary>
+ </member>
+ <member name="M:Xunit.Extensions.TheoryCommand.#ctor(System.Reflection.MethodInfo,System.Object[])">
+ <summary>
+ Creates a new instance of <see cref="T:Xunit.Extensions.TheoryCommand"/>.
+ </summary>
+ <param name="testMethod">The method under test</param>
+ <param name="parameters">The parameters to be passed to the test method</param>
+ </member>
+ <member name="M:Xunit.Extensions.TheoryCommand.Execute(System.Object)">
+ <inheritdoc/>
+ </member>
+ <member name="P:Xunit.Extensions.TheoryCommand.Parameters">
+ <summary>
+ Gets the parameter values that are passed to the test method.
+ </summary>
+ </member>
+ <member name="T:Xunit.Extensions.TraceAttribute">
+ <summary>