Skip to content

Instantly share code, notes, and snippets.

@davidalpert
Created February 26, 2011 03:10
Show Gist options
  • Save davidalpert/844899 to your computer and use it in GitHub Desktop.
Save davidalpert/844899 to your computer and use it in GitHub Desktop.
results of running 'rake' on my current net40 branch
------ Test started: Assembly: Machine.UrlStrong.Specs.dll ------
when generating
» should look right (FAIL)
UrlNode, when creating a UrlNode with parameters
» should have a format string with parameters
UrlNode, when creating a UrlNode with a dash
» should have ClassName with underscore
» should have AccessorName with underscore
» should have a format string with dash
UrlNode, when creating a UrlNode with a reserved word
» should escape the AccessorName
UrlNode, when creating a UrlNode with a reserved word as a parameter
» should not escape the FormalParameter FieldName
» should escape the FormalParameter declaration
» should escape the FormalParameter assignment
UrlTree, when creating a tree with a url part that is just a parameter
» should create a node that is only parameter
» should create a node that does not have parameters
» should create a node that supports get
UrlTree, when creating a tree with a url part that has two parameters
» should create a node that is not only parameter
» should create a node that does not have parameters
» should create a node that has the right formal parameters
» should create a node that has the right actual parameters
UrlTree, when creating a tree from urls
» should have a root
» should have a root with one child
» should have a root with a foo node
» should have a root with a foo node with two children
» should have a root with a foo node with bar and yadda children
ParsedUrlPart, when creating a simple url part
» should have no parameters
» should be able to build
» should have the part in the part text
ParsedUrlPart, when creating a url part with a dash
» should have no parameters
» should be able to build
» should have the part in the part text
ParsedUrlPart, when creating a parameter url part
» should have one parameter
» should have an id parameter
» should have a part name surrounded by underscores
» should be able to build with a parameter
» should not be able to build without parameters
ParsedUrlPart, when creating an embedded parameter url part
» should have one parameter
» should have an id parameter
» should have a part name with the parameter name surrounded by underscores
» should be able to build with a parameter
» should not be able to build without parameters
ParsedUrlPart, when creating an embedded parameter url part with multiple parameters
» should have two parameters
» should have an both parameters
» should be able to build with both parameters
» should not be able to build without parameters
Routing, when mapping a simple route
» should set the controller
» should set the action
» should set the destination
Routing, when mapping a route with a parameter with no defaults
» should set the controller
» should set the action
» should not set default for parameter
» should set the destination
Routing, when mapping a route with a parameter with default
» should set the controller
» should set the action
» should set default for parameter
» should set the destination
Routing, when implicitly mapping a route with reserved route tokens
» should set the controller
» should set the action
» should set the destination
Routing, when mapping a route with a multiple parameters in a part
» should set the controller
» should set the action
» should set default for parameter
» should set the destination
Routing, when mapping a route using Parameter
» should set the controller
» should set the action
» should set default for parameter
» should set constraint for parameter
» should set the destination
Routing, when mapping a route using a custom routehandler
» should set the destination
» should set default for parameter
» should use the custom route handler
» should use the given custom function to build the custom route handler
when mapping a route with constraints using a custom routehandler
» should set default for parameter
» should set constraint for parameter
» should set the destination
» should use the custom route handler
» should use the given custom function to build the custom route handler
Parse Result, when parsed from simple get url
» should not have errors
» should have only one url
» should have a get url
» should have a url with only one part
» should have a url with a home part
Parse Result, when parsed from simple get url with a comment
» should not have errors
» should have only one url
» should have a get url
» should have a url with only one part
» should have a url with a home part
» should have a url with a comment
Parse Result, when parsed from simple get url with hash and a comment
» should not have errors
» should have only one url
» should have a get url
» should have a url with only one part
» should have a url with a home part
» should have a url with a comment
» should have a url with a hash
Parse Result, when parsed from a sample url map
» should not have errors
» should have eight urls
» should have one namespace
UsingLineParser, when parsing a class line
» should be able to parse it
» should parse namespace
UsingLineParser, when parsing some jibberish
» should not be able to parse it
UsingLineParser, when parsing a using line
» should be able to parse it
» should parse namespace
UsingLineParser, when parsing jibberish
» should not be able to parse it
UrlLineParser, when parsing a root get url
» should be able to parse it
» should parse url
UrlLineParser, when parsing a simple get url
» should be able to parse it
» should parse url
UrlLineParser, when parsing a get and post url
» should be able to parse it
» should parse url
UrlLineParser, when parsing a url with all the supported verbs
» should be able to parse it
» should parse url
UrlLineParser, when parsing a url with an unknown verb
» should be able to parse it
» should parse url
UrlLineParser, when parsing a url with a wildcard for a verb
» should be able to parse it
» should parse url
UrlLineParser, when parsing a url with a parameter embedded in a part
» should be able to parse it
» should parse url
UrlLineParser, when parsing a url with a dash in it
» should be able to parse it
» should parse url
UrlLineParser, when parsing a using statement
» should not be able to parse it
Test 'should look right' failed:
System.IO.FileNotFoundException: Could not load file or assembly 'Machine.UrlStrong.Translation.Templates' or one of its dependencies. The system cannot find the file specified.
File name: 'Machine.UrlStrong.Translation.Templates'
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
Generation\Generator.cs(18,0): at Machine.UrlStrong.Translation.Generation.Generator.GenerateStrongUrls(UrlStrongModel strongModel, TextWriter writer)
DoIt.cs(23,0): at Machine.UrlStrong.DoIt.Now(TextReader reader, TextWriter writer)
BigPictureSpecs.cs(25,0): at Machine.UrlStrong.Specs.when_generating.<.ctor>b__0()
d:\Users\David\lib\machine.specifications.git\Source\Machine.Specifications\Utility\RandomExtensionMethods.cs(28,0): at Machine.Specifications.Utility.RandomExtensionMethods.InvokeAll(IEnumerable`1 contextActions)
d:\Users\David\lib\machine.specifications.git\Source\Machine.Specifications\Model\Context.cs(56,0): at Machine.Specifications.Model.Context.EstablishContext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
116 passed, 1 failed, 0 skipped, took 2.42 seconds (Machine.Specifications 0.3.0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment