Skip to content

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amirrajan committed Oct 4, 2015
1 parent d454b9e commit c2bb379
Show file tree
Hide file tree
Showing 18 changed files with 78 additions and 35 deletions.
10 changes: 5 additions & 5 deletions NSpec.GallioAdapter/NSpec.GallioAdapter.plugin
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://www.gallio.org/" pluginId="Gallio.NSpecAdapter" recommendedInstallationPath="NSpec">
<traits>
<name>NSpec Adapter Plugin</name>
<version>0.9.1.0</version>
<version>0.9.2.0</version>
<description>Provides support for running NSpec within Gallio. Requires the assemblies from NSpec.</description>
</traits>

Expand All @@ -18,17 +18,17 @@
</files>

<assemblies>
<assembly fullName="NSpec.GallioAdapter, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null" codeBase="NSpec.GallioAdapter.dll" qualifyPartialName="true"/>
<assembly fullName="NSpec, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null" codeBase="NSpec.dll"/>
<assembly fullName="NSpec.GallioAdapter, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null" codeBase="NSpec.GallioAdapter.dll" qualifyPartialName="true"/>
<assembly fullName="NSpec, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null" codeBase="NSpec.dll"/>
<assembly fullName="nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" codeBase="nunit.framework.dll"/>
</assemblies>

<components>
<component componentId="NSpec.TestFramework" serviceId="Gallio.TestFramework" componentType="NSpec.GallioAdapter.NSpecTestFramework, NSpec.GallioAdapter">
<traits>
<name>NSpec</name>
<frameworkAssemblies>NSpec, Version=0.9.1.0</frameworkAssemblies>
<version>0.9.1.0</version>
<frameworkAssemblies>NSpec, Version=0.9.2.0</frameworkAssemblies>
<version>0.9.2.0</version>
<fileTypes>Assembly</fileTypes>
</traits>
</component>
Expand Down
4 changes: 2 additions & 2 deletions SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("0.9.1")]
[assembly: AssemblyFileVersion("0.9.1")]
[assembly: AssemblyVersion("0.9.2")]
[assembly: AssemblyFileVersion("0.9.2")]
4 changes: 2 additions & 2 deletions _includes/act.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>act</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_act_code" data-timestamp="2013-04-15 13:55:28 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_act_code" data-timestamp="2015-10-04 16:42:30 -0600" class="brush: csharp;">using NSpec;

[Tag(&quot;describe_act&quot;)]
class describe_batman_sound_effects_as_text : nspec
Expand All @@ -29,7 +29,7 @@ <h1>act</h1>
string sound;
}
</pre>
<pre id="describe_act_output" data-timestamp="2013-04-15 13:55:28 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe batman sound effects as text
<pre id="describe_act_output" data-timestamp="2015-10-04 16:42:30 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe batman sound effects as text
they are loud and emphatic
given bam
should be BAM!!!
Expand Down
43 changes: 43 additions & 0 deletions _includes/async_helpers.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<p><a name="async_helpers"></a></p>
<div class="zone zone-sub-page-title">
<h1>async helpers</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_async_helpers_code" data-timestamp="2015-10-04 16:42:31 -0600" class="brush: csharp;">using NSpec;
using System.Threading.Tasks;

class describe_async_helpers : nspec
{
void when_making_tea()
{
context[&quot;that is 210 degrees&quot;] = () =&gt;
{
beforeAsync = async () =&gt; await MakeTeaAsync(210);
it[&quot;should be hot&quot;] = () =&gt; tea.Taste().should_be(&quot;hot&quot;);
};
context[&quot;that is 90 degrees&quot;] = () =&gt;
{
beforeAsync = async () =&gt; await MakeTeaAsync(90);
it[&quot;should be cold&quot;] = () =&gt; tea.Taste().should_be(&quot;cold&quot;);
};
}

//helper methods do not have underscores
async Task MakeTeaAsync(int temperature)
{
tea = await Task.Run(() =&gt; new Tea(temperature));
}

Tea tea;
}
</pre>
<pre id="describe_async_helpers_output" data-timestamp="2015-10-04 16:42:31 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">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
</pre>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/before.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>before</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_before_code" data-timestamp="2013-04-15 13:55:28 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_before_code" data-timestamp="2015-10-04 16:42:31 -0600" class="brush: csharp;">using NSpec;

class describe_before : nspec
{
Expand All @@ -18,7 +18,7 @@ <h1>before</h1>
int number;
}
</pre>
<pre id="describe_before_output" data-timestamp="2013-04-15 13:55:28 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe before
<pre id="describe_before_output" data-timestamp="2015-10-04 16:42:31 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe before
they run before each example
number should be 2
number should be 1
Expand Down
4 changes: 2 additions & 2 deletions _includes/changing_failure_exception.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>changing failure exception</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_changing_failure_exception_code" data-timestamp="2013-04-15 13:55:28 -0500" class="brush: csharp;">using System;
<pre id="describe_changing_failure_exception_code" data-timestamp="2015-10-04 16:42:31 -0600" class="brush: csharp;">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -23,7 +23,7 @@ <h1>changing failure exception</h1>
}
}
</pre>
<pre id="describe_changing_failure_exception_output" data-timestamp="2013-04-15 13:55:28 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe changing failure exception
<pre id="describe_changing_failure_exception_output" data-timestamp="2015-10-04 16:42:31 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">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...

Expand Down
4 changes: 2 additions & 2 deletions _includes/changing_stacktrace_message.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>changing stacktrace message</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_changing_stacktrace_message_code" data-timestamp="2013-04-15 13:55:29 -0500" class="brush: csharp;">using System;
<pre id="describe_changing_stacktrace_message_code" data-timestamp="2015-10-04 16:42:32 -0600" class="brush: csharp;">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand All @@ -25,7 +25,7 @@ <h1>changing stacktrace message</h1>
}
}
</pre>
<pre id="describe_changing_stacktrace_message_output" data-timestamp="2013-04-15 13:55:29 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe changing stacktrace message
<pre id="describe_changing_stacktrace_message_output" data-timestamp="2015-10-04 16:42:32 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">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...

Expand Down
4 changes: 2 additions & 2 deletions _includes/class_level.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>class level</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_class_level_code" data-timestamp="2013-04-15 13:55:29 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_class_level_code" data-timestamp="2015-10-04 16:42:32 -0600" class="brush: csharp;">using NSpec;

class describe_class_level : nspec
{
Expand All @@ -27,7 +27,7 @@ <h1>class level</h1>
string sequence;
}
</pre>
<pre id="describe_class_level_output" data-timestamp="2013-04-15 13:55:29 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe class level
<pre id="describe_class_level_output" data-timestamp="2015-10-04 16:42:32 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe class level
specify given befores and acts run in the correct sequence

1 Examples, 0 Failed, 0 Pending
Expand Down
4 changes: 2 additions & 2 deletions _includes/contexts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>contexts</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_contexts_code" data-timestamp="2013-04-15 13:55:29 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_contexts_code" data-timestamp="2015-10-04 16:42:32 -0600" class="brush: csharp;">using NSpec;

class describe_contexts : nspec
{
Expand All @@ -29,7 +29,7 @@ <h1>contexts</h1>
private Account account;
}
</pre>
<pre id="describe_contexts_output" data-timestamp="2013-04-15 13:55:29 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe contexts
<pre id="describe_contexts_output" data-timestamp="2015-10-04 16:42:32 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe contexts
describe Account
when withdrawing cash
account is in credit
Expand Down
4 changes: 2 additions & 2 deletions _includes/exception.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>exception</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_exception_code" data-timestamp="2013-04-15 13:55:29 -0500" class="brush: csharp;">using System;
<pre id="describe_exception_code" data-timestamp="2015-10-04 16:42:32 -0600" class="brush: csharp;">using System;
using NSpec;

class describe_exception : nspec
Expand All @@ -16,7 +16,7 @@ <h1>exception</h1>
string nullString = null;
}
</pre>
<pre id="describe_exception_output" data-timestamp="2013-04-15 13:55:29 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe exception
<pre id="describe_exception_output" data-timestamp="2015-10-04 16:42:32 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe exception
given a null string
should throw null-ref

Expand Down
4 changes: 2 additions & 2 deletions _includes/helpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>helpers</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_helpers_code" data-timestamp="2013-04-15 13:55:30 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_helpers_code" data-timestamp="2015-10-04 16:42:33 -0600" class="brush: csharp;">using NSpec;

class describe_helpers : nspec
{
Expand All @@ -27,7 +27,7 @@ <h1>helpers</h1>
}
Tea tea;
}</pre>
<pre id="describe_helpers_output" data-timestamp="2013-04-15 13:55:30 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe helpers
<pre id="describe_helpers_output" data-timestamp="2015-10-04 16:42:33 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe helpers
when making tea
that is 210 degrees
should be hot
Expand Down
4 changes: 2 additions & 2 deletions _includes/inheritance.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>inheritance</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_inheritance_code" data-timestamp="2013-04-15 13:55:30 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_inheritance_code" data-timestamp="2015-10-04 16:42:33 -0600" class="brush: csharp;">using NSpec;

[Tag(&quot;describe_inheritance&quot;)]
class given_the_sequence_continues_with_2 : given_the_sequence_starts_with_1
Expand Down Expand Up @@ -31,7 +31,7 @@ <h1>inheritance</h1>
protected string sequence;
}
</pre>
<pre id="describe_inheritance_output" data-timestamp="2013-04-15 13:55:30 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">given the sequence starts with 1
<pre id="describe_inheritance_output" data-timestamp="2015-10-04 16:42:33 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">given the sequence starts with 1
given the sequence continues with 2
given the sequence continues with 3
sequence should be &quot;123&quot;
Expand Down
4 changes: 2 additions & 2 deletions _includes/my_first_spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>my first spec</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="my_first_spec_code" data-timestamp="2013-04-15 13:55:31 -0500" class="brush: csharp;">using NSpec;
<pre id="my_first_spec_code" data-timestamp="2015-10-04 16:42:34 -0600" class="brush: csharp;">using NSpec;

class my_first_spec : nspec
{
Expand All @@ -13,7 +13,7 @@ <h1>my first spec</h1>
}
}
</pre>
<pre id="my_first_spec_output" data-timestamp="2013-04-15 13:55:31 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">my first spec
<pre id="my_first_spec_output" data-timestamp="2015-10-04 16:42:34 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">my first spec
given the world has not come to an end
Hello World should be Hello World

Expand Down
4 changes: 2 additions & 2 deletions _includes/pending.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>pending</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_pending_code" data-timestamp="2013-04-15 13:55:30 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_pending_code" data-timestamp="2015-10-04 16:42:33 -0600" class="brush: csharp;">using NSpec;

class describe_pending : nspec
{
Expand All @@ -15,7 +15,7 @@ <h1>pending</h1>
}
}
</pre>
<pre id="describe_pending_output" data-timestamp="2013-04-15 13:55:30 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe pending
<pre id="describe_pending_output" data-timestamp="2015-10-04 16:42:33 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe pending
when creating pending specifications
pending spec - PENDING
&quot;&quot; should be &quot;something else&quot; - PENDING
Expand Down
4 changes: 2 additions & 2 deletions _includes/shared_behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>shared behavior</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_shared_behavior_code" data-timestamp="2013-04-15 13:55:31 -0500" class="brush: csharp;">using System;
<pre id="describe_shared_behavior_code" data-timestamp="2015-10-04 16:42:33 -0600" class="brush: csharp;">using System;
using System.Collections.Generic;
using System.Linq;
using NSpec;
Expand Down Expand Up @@ -60,6 +60,6 @@ <h1>shared behavior</h1>
List&lt;string&gt; list;
}
</pre>
<pre id="describe_shared_behavior_output" data-timestamp="2013-04-15 13:55:31 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">0 Examples, 0 Failed, 0 Pending
<pre id="describe_shared_behavior_output" data-timestamp="2015-10-04 16:42:33 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">0 Examples, 0 Failed, 0 Pending
</pre>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/specifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1>specifications</h1>
</div>
<div id="layout-content" class="group" style="padding-top: 10px;">
<pre id="describe_specifications_code" data-timestamp="2013-04-15 13:55:31 -0500" class="brush: csharp;">using NSpec;
<pre id="describe_specifications_code" data-timestamp="2015-10-04 16:42:34 -0600" class="brush: csharp;">using NSpec;

class describe_specifications : nspec
{
Expand All @@ -27,7 +27,7 @@ <h1>specifications</h1>
object someObject = null;
}
</pre>
<pre id="describe_specifications_output" data-timestamp="2013-04-15 13:55:31 -0500" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe specifications
<pre id="describe_specifications_output" data-timestamp="2015-10-04 16:42:34 -0600" style="font-size: 1.1em !important; color: #5ce632; background-color: #1b2426; padding: 10px;">describe specifications
when creating specifications
true should be false - FAILED - Expected: False, But was: True
enumerable should be empty
Expand Down
2 changes: 1 addition & 1 deletion _includes/timestamp.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Sample code and output automatically executed against nspec version 0.9.65 on 2013-04-15 13:55:32 -0500.
Sample code and output automatically executed against nspec version 0.9.1 on 2015-10-04 16:42:34 -0600.
2 changes: 1 addition & 1 deletion nspec.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>nspec</id>
<version>0.9.1</version>
<version>0.9.2</version>
<iconUrl>http://nspec.org/images/logo.png</iconUrl>
<licenseUrl>https://github.com/mattflo/NSpec/blob/master/license.txt</licenseUrl>
<authors>Matt Florence, Amir Rajan</authors>
Expand Down

0 comments on commit c2bb379

Please sign in to comment.