diff --git a/NSpec.GallioAdapter/NSpec.GallioAdapter.plugin b/NSpec.GallioAdapter/NSpec.GallioAdapter.plugin index 9d3fe92e..f763059d 100644 --- a/NSpec.GallioAdapter/NSpec.GallioAdapter.plugin +++ b/NSpec.GallioAdapter/NSpec.GallioAdapter.plugin @@ -2,7 +2,7 @@ NSpec Adapter Plugin - 0.9.1.0 + 0.9.2.0 Provides support for running NSpec within Gallio. Requires the assemblies from NSpec. @@ -18,8 +18,8 @@ - - + + @@ -27,8 +27,8 @@ NSpec - NSpec, Version=0.9.1.0 - 0.9.1.0 + NSpec, Version=0.9.2.0 + 0.9.2.0 Assembly diff --git a/SharedAssemblyInfo.cs b/SharedAssemblyInfo.cs index 89a7c326..aeac8277 100644 --- a/SharedAssemblyInfo.cs +++ b/SharedAssemblyInfo.cs @@ -21,5 +21,5 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.9.1")] -[assembly: AssemblyFileVersion("0.9.1")] \ No newline at end of file +[assembly: AssemblyVersion("0.9.2")] +[assembly: AssemblyFileVersion("0.9.2")] \ No newline at end of file diff --git a/_includes/act.html b/_includes/act.html index 370edb24..4b80c172 100644 --- a/_includes/act.html +++ b/_includes/act.html @@ -3,7 +3,7 @@

act

-
using NSpec;
+
using NSpec;
 
 [Tag("describe_act")]
 class describe_batman_sound_effects_as_text : nspec
@@ -29,7 +29,7 @@ 

act

string sound; }
-
describe batman sound effects as text
+
describe batman sound effects as text
   they are loud and emphatic
     given bam
       should be BAM!!!
diff --git a/_includes/async_helpers.html b/_includes/async_helpers.html
new file mode 100644
index 00000000..33c8487b
--- /dev/null
+++ b/_includes/async_helpers.html
@@ -0,0 +1,43 @@
+

+
+

async helpers

+
+
+
using NSpec;
+using System.Threading.Tasks;
+
+class describe_async_helpers : nspec
+{
+    void when_making_tea()
+    {
+        context["that is 210 degrees"] = () =>
+        {
+            beforeAsync = async () => await MakeTeaAsync(210);
+            it["should be hot"] = () => tea.Taste().should_be("hot");
+        };
+        context["that is 90 degrees"] = () =>
+        {
+            beforeAsync = async () => await MakeTeaAsync(90);
+            it["should be cold"] = () => tea.Taste().should_be("cold");
+        };
+    }
+
+    //helper methods do not have underscores
+    async Task MakeTeaAsync(int temperature)
+    {
+        tea = await Task.Run(() => new Tea(temperature));
+    }
+
+    Tea tea;
+}
+
+
describe async helpers
+  when making tea
+    that is 210 degrees
+      should be hot
+    that is 90 degrees
+      should be cold
+
+2 Examples, 0 Failed, 0 Pending
+
+
\ No newline at end of file diff --git a/_includes/before.html b/_includes/before.html index b1433252..bee31bcc 100644 --- a/_includes/before.html +++ b/_includes/before.html @@ -3,7 +3,7 @@

before

-
using NSpec;
+
using NSpec;
 
 class describe_before : nspec
 {
@@ -18,7 +18,7 @@ 

before

int number; }
-
describe before
+
describe before
   they run before each example
     number should be 2
     number should be 1
diff --git a/_includes/changing_failure_exception.html b/_includes/changing_failure_exception.html
index 90059b4b..04aabbf8 100644
--- a/_includes/changing_failure_exception.html
+++ b/_includes/changing_failure_exception.html
@@ -3,7 +3,7 @@
 

changing failure exception

-
using System;
+
using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -23,7 +23,7 @@ 

changing failure exception

} }
-
describe changing failure exception
+
describe changing failure exception
   given a context that throws an exception
     the exception can be changed to provide out of proc information - FAILED - A more detailed...
 
diff --git a/_includes/changing_stacktrace_message.html b/_includes/changing_stacktrace_message.html
index 49829d53..67cb4b3c 100644
--- a/_includes/changing_stacktrace_message.html
+++ b/_includes/changing_stacktrace_message.html
@@ -3,7 +3,7 @@
 

changing stacktrace message

-
using System;
+
using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -25,7 +25,7 @@ 

changing stacktrace message

} }
-
describe changing stacktrace message
+
describe changing stacktrace message
   given a context that throws an exception
     the stack trace can be altered to provide more information - FAILED - An exception was thr...
 
diff --git a/_includes/class_level.html b/_includes/class_level.html
index 0b7b7dac..759793fe 100644
--- a/_includes/class_level.html
+++ b/_includes/class_level.html
@@ -3,7 +3,7 @@
 

class level

-
using NSpec;
+
using NSpec;
 
 class describe_class_level : nspec
 {
@@ -27,7 +27,7 @@ 

class level

string sequence; }
-
describe class level
+
describe class level
   specify given befores and acts run in the correct sequence
 
 1 Examples, 0 Failed, 0 Pending
diff --git a/_includes/contexts.html b/_includes/contexts.html
index 1b7ac1f2..2069c8ff 100644
--- a/_includes/contexts.html
+++ b/_includes/contexts.html
@@ -3,7 +3,7 @@
 

contexts

-
using NSpec;
+
using NSpec;
 
 class describe_contexts : nspec
 {
@@ -29,7 +29,7 @@ 

contexts

private Account account; }
-
describe contexts
+
describe contexts
   describe Account
     when withdrawing cash
       account is in credit
diff --git a/_includes/exception.html b/_includes/exception.html
index 5fcafb2b..7a11bc65 100644
--- a/_includes/exception.html
+++ b/_includes/exception.html
@@ -3,7 +3,7 @@
 

exception

-
using System;
+
using System;
 using NSpec;
 
 class describe_exception : nspec
@@ -16,7 +16,7 @@ 

exception

string nullString = null; }
-
describe exception
+
describe exception
   given a null string
     should throw null-ref
 
diff --git a/_includes/helpers.html b/_includes/helpers.html
index 3936ac72..5071f425 100644
--- a/_includes/helpers.html
+++ b/_includes/helpers.html
@@ -3,7 +3,7 @@
 

helpers

-
using NSpec;
+
using NSpec;
 
 class describe_helpers : nspec
 {
@@ -27,7 +27,7 @@ 

helpers

} Tea tea; }
-
describe helpers
+
describe helpers
   when making tea
     that is 210 degrees
       should be hot
diff --git a/_includes/inheritance.html b/_includes/inheritance.html
index 001a8c71..54f3c83b 100644
--- a/_includes/inheritance.html
+++ b/_includes/inheritance.html
@@ -3,7 +3,7 @@
 

inheritance

-
using NSpec;
+
using NSpec;
 
 [Tag("describe_inheritance")]
 class given_the_sequence_continues_with_2 : given_the_sequence_starts_with_1
@@ -31,7 +31,7 @@ 

inheritance

protected string sequence; }
-
given the sequence starts with 1
+
given the sequence starts with 1
   given the sequence continues with 2
     given the sequence continues with 3
       sequence should be "123"
diff --git a/_includes/my_first_spec.html b/_includes/my_first_spec.html
index c4e1ad5e..602cbf8e 100644
--- a/_includes/my_first_spec.html
+++ b/_includes/my_first_spec.html
@@ -3,7 +3,7 @@
 

my first spec

-
using NSpec;
+
using NSpec;
 
 class my_first_spec : nspec
 {
@@ -13,7 +13,7 @@ 

my first spec

} }
-
my first spec
+
my first spec
   given the world has not come to an end
     Hello World should be Hello World
 
diff --git a/_includes/pending.html b/_includes/pending.html
index 607cfebb..f9beb1e3 100644
--- a/_includes/pending.html
+++ b/_includes/pending.html
@@ -3,7 +3,7 @@
 

pending

-
using NSpec;
+
using NSpec;
 
 class describe_pending : nspec
 {
@@ -15,7 +15,7 @@ 

pending

} }
-
describe pending
+
describe pending
   when creating pending specifications
     pending spec - PENDING
     "" should be "something else" - PENDING
diff --git a/_includes/shared_behavior.html b/_includes/shared_behavior.html
index e15095eb..ec628945 100644
--- a/_includes/shared_behavior.html
+++ b/_includes/shared_behavior.html
@@ -3,7 +3,7 @@
 

shared behavior

-
using System;
+
using System;
 using System.Collections.Generic;
 using System.Linq;
 using NSpec;
@@ -60,6 +60,6 @@ 

shared behavior

List<string> list; }
-
0 Examples, 0 Failed, 0 Pending
+
0 Examples, 0 Failed, 0 Pending
 
\ No newline at end of file diff --git a/_includes/specifications.html b/_includes/specifications.html index 3d7bec2b..f0d65909 100644 --- a/_includes/specifications.html +++ b/_includes/specifications.html @@ -3,7 +3,7 @@

specifications

-
using NSpec;
+
using NSpec;
 
 class describe_specifications : nspec
 {
@@ -27,7 +27,7 @@ 

specifications

object someObject = null; }
-
describe specifications
+
describe specifications
   when creating specifications
     true should be false - FAILED - Expected: False, But was: True
     enumerable should be empty
diff --git a/_includes/timestamp.html b/_includes/timestamp.html
index 7c168955..1fe7f1cc 100644
--- a/_includes/timestamp.html
+++ b/_includes/timestamp.html
@@ -1 +1 @@
-Sample code and output automatically executed against nspec version 0.9.65 on 2013-04-15 13:55:32 -0500.
\ No newline at end of file
+Sample code and output automatically executed against nspec version 0.9.1 on 2015-10-04 16:42:34 -0600.
\ No newline at end of file
diff --git a/nspec.nuspec b/nspec.nuspec
index 7db527a1..101fbc67 100644
--- a/nspec.nuspec
+++ b/nspec.nuspec
@@ -2,7 +2,7 @@
 
   
     nspec
-    0.9.1
+    0.9.2
     http://nspec.org/images/logo.png
     https://github.com/mattflo/NSpec/blob/master/license.txt
     Matt Florence, Amir Rajan