This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var p = new Program(); | |
| Console.WriteLine(p.Text); | |
| Console.ReadLine(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Fact] | |
| public void Should_$expectation$() | |
| { | |
| //Given | |
| // When | |
| // Then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test 'Nancy.Formatters.Tests.XmlFormatterExtensionsFixtures.Should_return_a_valid_model_in_xml_format' failed: Assert.Equal() Failure | |
| Position: First difference is at position 39 | |
| Expected: <?xml version="1.0"?> | |
| <Person xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
| <FirstName>Andy</FirstName> | |
| <LastName>Pike</LastName> | |
| </Person> | |
| Actual: <?xml version="1.0"?> | |
| <Person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
| <FirstName>Andy</FirstName> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEBUG: 00000:Finding branch | |
| DEBUG: 00007:Trying symbolic-ref | |
| DEBUG: 04704:Got branch | |
| DEBUG: 04706:Getting status | |
| DEBUG: 07971:Parsing status | |
| DEBUG: 07975:Status: ## predicates | |
| DEBUG: 07976:Building status object | |
| DEBUG: 07982:Finished |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'albacore' | |
| OUTPUT = "build" | |
| CONFIGURATION = 'Release' | |
| ROOT_FOLDER = File.expand_path(File.dirname(__FILE__)) | |
| ARTIFACTS_FOLDER = File.expand_path(File.join(File.dirname(__FILE__), "build")) + '/' | |
| SHARED_ASSEMBLY_INFO = 'src/SharedAssemblyInfo.cs' | |
| SOLUTION_FILE = 'src/Nancy.sln' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ARTIFACTS_FOLDER = File.expand_path(File.join(File.dirname(__FILE__), "build")) + '/' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| testAssemblies = FileList["src/**/Release/*.Tests.dll"].exclude(/obj\//) | |
| testAssemblies.each do |testAssembly| | |
| xunit :xunit do |xunit| | |
| xunit.command = "tools/xunit/xunit.console.clr4.x86.exe" | |
| xunit.assembly = testAssembly | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| desc "Executes MSpec tests" | |
| mspec :mspec do |mspec| | |
| mspec.command = "tools/mSpec/mspec.exe" | |
| mspec.assemblies "src/Nancy.Tests/bin/#{CONFIGURATION}/Nancy.Tests.dll" | |
| end | |
| testAssemblies = FileList["src/**/#{CONFIGURATION}/*.Tests.dll"].exclude(/obj\//) | |
| testAssemblies.each do |testAssembly| | |
| desc "Executes xUnit tests" | |
| xunit :xunit do |xunit| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace ConsoleApplication1 | |
| { | |
| using System.Dynamic; | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| dynamic dictionary = new DynamicDictionary(); | |
| dictionary.foo = "test"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Fact] | |
| public void Should_be_able_to_impliclity_cast_dynamic_member_to_int() | |
| { | |
| // Given | |
| this.dictionary.foo = 2; | |
| // When | |
| int value = this.GetIntValue(this.dictionary.foo); | |
| // Then |
OlderNewer