Permalink
Browse files

Merge remote-tracking branch 'update-gallio-adapter'

* update-gallio-adapter:
  Update gitignore
  Remove specific frameworkAssemblie version
  Update FrameworkTests
  Add missing parameter
  Add Gallio 3.3.1 nuget package
  Remove Gallio 3.1 library
  Update rakefile
  Remove old gallio version
  Remove version from folders
  Remove version from project properties
  Update AssemblyInfo's
  Remove version number from file names
  Add Gallio v3.3.454

Conflicts:
	Machine.Specifications.sln
	Source/Machine.Specifications.GallioAdapter.TestResources/Machine.Specifications.GallioAdapter.TestResources.csproj
	Source/Machine.Specifications.GallioAdapter.Tests/Machine.Specifications.GallioAdapter.Tests.csproj
	Source/Machine.Specifications.GallioAdapter/Machine.Specifications.GallioAdapter.csproj
	packages/repositories.config
  • Loading branch information...
2 parents 78747f9 + 2cf6511 commit 2a459e75f2c3b313ca67492ab7d36d0b17d1d067 @agross agross committed Jan 24, 2012
Showing with 16,709 additions and 91,457 deletions.
  1. +1 −1 .gitignore
  2. +0 −14 Libraries/Gallio/3.1/Gallio License.txt
  3. BIN Libraries/Gallio/3.1/Gallio.XmlSerializers.dll
  4. BIN Libraries/Gallio/3.1/Gallio.dll
  5. BIN Libraries/Gallio/3.1/Gallio.pdb
  6. +0 −37,863 Libraries/Gallio/3.1/Gallio.xml
  7. +0 −442 Libraries/Gallio/3.1/Gallio.xsd
  8. +6 −6 Machine.Specifications.sln
  9. +24 −24 ...Adapter.3.1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/FailingContext.cs
  10. +41 −41 ...Adapter.3.1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/IgnoredContext.cs
  11. +4 −4 ...ifications.GallioAdapter.TestResources/Machine.Specifications.GallioAdapter.TestResources.csproj}
  12. +20 −20 ....1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/Properties/AssemblyInfo.cs
  13. +40 −40 ...llioAdapter.3.1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/SimpleSpec.cs
  14. +14 −14 ...lioAdapter.3.1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/SubjectSpec.cs
  15. +21 −21 ...llioAdapter.3.1.TestResources → Machine.Specifications.GallioAdapter.TestResources}/TagContext.cs
  16. +29 −29 ...ns.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/AssemblyConfigFixture.cs
  17. +55 −55 ...ions.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/BankingContextTests.cs
  18. +62 −62 ...fications.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/EmptySpecTests.cs
  19. +105 −105 ...ions.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/FailingContextTests.cs
  20. +303 −304 ...fications.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/FrameworkTests.cs
  21. +53 −53 ...cifications.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/GallioRunner.cs
  22. +27 −27 ...ns.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/IAssemblyContextTests.cs
  23. +8 −9 ...j → Machine.Specifications.GallioAdapter.Tests/Machine.Specifications.GallioAdapter.Tests.csproj}
  24. +20 −20 ....GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/Properties/AssemblyInfo.cs
  25. +4 −3 ...cifications.GallioAdapter.3.1.Tests → Machine.Specifications.GallioAdapter.Tests}/packages.config
  26. +5 −5 ...er.3.1.csproj → Machine.Specifications.GallioAdapter/Machine.Specifications.GallioAdapter.csproj}
  27. +42 −42 ....3.1 → Machine.Specifications.GallioAdapter}/Machine.Specifications.GallioAdapter.plugin.template
  28. +41 −41 ...tions.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/MachineSpecificationsFramework.cs
  29. +67 −67 ...ifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Model/MachineAssemblyTest.cs
  30. +23 −23 ...cifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Model/MachineContextTest.cs
  31. +13 −13 ...ecifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Model/MachineGallioTest.cs
  32. +23 −23 ...tions.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Model/MachineSpecificationTest.cs
  33. +15 −15 ...ions.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Model/SpecificationMetadataKeys.cs
  34. +20 −20 ...ecifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Properties/AssemblyInfo.cs
  35. +90 −90 ...ations.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Properties/Resources.Designer.cs
  36. +128 −128 ...pecifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Properties/Resources.resx
  37. +5 −5 Source/{Machine.Specifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Readme.txt
  38. +129 −128 ...fications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Services/GallioRunListener.cs
  39. +146 −146 ...lioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Services/MachineSpecificationController.cs
  40. +39 −39 ...GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Services/MachineSpecificationsDriver.cs
  41. +142 −142 ...llioAdapter.3.1 → Machine.Specifications.GallioAdapter}/Services/MachineSpecificationsExplorer.cs
  42. +4 −4 Source/{Machine.Specifications.GallioAdapter.3.1 → Machine.Specifications.GallioAdapter}/TODO.txt
  43. +4 −0 Source/Machine.Specifications.GallioAdapter/packages.config
  44. +0 −14 Tools/Gallio/v3.1.397/Gallio License.txt
  45. BIN Tools/Gallio/v3.1.397/Gallio.Host.Elevated.exe
  46. +0 −23 Tools/Gallio/v3.1.397/Gallio.Host.Elevated.exe.config
  47. BIN Tools/Gallio/v3.1.397/Gallio.Host.Elevated.x86.exe
  48. +0 −23 Tools/Gallio/v3.1.397/Gallio.Host.Elevated.x86.exe.config
  49. BIN Tools/Gallio/v3.1.397/Gallio.Host.exe
  50. +0 −23 Tools/Gallio/v3.1.397/Gallio.Host.exe.config
  51. BIN Tools/Gallio/v3.1.397/Gallio.Host.x86.exe
  52. +0 −23 Tools/Gallio/v3.1.397/Gallio.Host.x86.exe.config
  53. BIN Tools/Gallio/v3.1.397/Gallio.Reports.dll
  54. BIN Tools/Gallio/v3.1.397/Gallio.Reports.pdb
  55. +0 −176 Tools/Gallio/v3.1.397/Gallio.Reports.xml
  56. BIN Tools/Gallio/v3.1.397/Gallio.XmlSerializers.dll
  57. BIN Tools/Gallio/v3.1.397/Gallio.dll
  58. BIN Tools/Gallio/v3.1.397/Gallio.pdb
  59. +0 −37,863 Tools/Gallio/v3.1.397/Gallio.xml
  60. +0 −442 Tools/Gallio/v3.1.397/Gallio.xsd
  61. BIN Tools/Gallio/v3.1.397/NUnit/v2.5/Gallio.NUnitAdapter25.dll
  62. +0 −85 Tools/Gallio/v3.1.397/NUnit/v2.5/Gallio.NUnitAdapter25.plugin
  63. BIN Tools/Gallio/v3.1.397/NUnit/v2.5/nunit.core.dll
  64. BIN Tools/Gallio/v3.1.397/NUnit/v2.5/nunit.core.interfaces.dll
  65. BIN Tools/Gallio/v3.1.397/NUnit/v2.5/nunit.framework.dll
  66. BIN Tools/Gallio/v3.1.397/NUnit/v2.5/nunit.util.dll
  67. +0 −8 Tools/Gallio/v3.1.397/TestGallioIntegration.bat
  68. BIN Tools/Gallio/{v3.1.397 → v3.3.454}/Gallio.Echo.exe
  69. +29 −26 Tools/Gallio/{v3.1.397 → v3.3.454}/Gallio.Echo.exe.config
  70. +17 −17 Tools/Gallio/{v3.1.397 → v3.3.454}/Gallio.Echo.plugin
  71. BIN Tools/Gallio/v3.3.454/Gallio.Reports.dll
  72. +298 −242 Tools/Gallio/{v3.1.397 → v3.3.454}/Gallio.Reports.plugin
  73. BIN Tools/Gallio/v3.3.454/Gallio.UI.dll
  74. +127 −0 Tools/Gallio/v3.3.454/Gallio.UI.plugin
  75. BIN Tools/Gallio/v3.3.454/Gallio.XmlSerializers.dll
  76. BIN Tools/Gallio/v3.3.454/Gallio.dll
  77. +676 −618 Tools/Gallio/{v3.1.397 → v3.3.454}/Gallio.plugin
  78. BIN Tools/Gallio/v3.3.454/Gallio35.dll
  79. +35 −0 Tools/Gallio/v3.3.454/Gallio35.plugin
  80. BIN Tools/Gallio/v3.3.454/Gallio40.dll
  81. +29 −0 Tools/Gallio/v3.3.454/Gallio40.plugin
  82. BIN Tools/Gallio/v3.3.454/NUnit/Latest/Gallio.NUnitAdapterLatest.dll
  83. +85 −0 Tools/Gallio/v3.3.454/NUnit/Latest/Gallio.NUnitAdapterLatest.plugin
  84. +11 −11 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/Readme.txt
  85. 0 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/Resources/NUnit.ico
  86. 0 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/addins/NUnit Addins Readme.txt
  87. +15 −15 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/license.txt
  88. BIN Tools/Gallio/v3.3.454/NUnit/Latest/nunit.core.dll
  89. BIN Tools/Gallio/v3.3.454/NUnit/Latest/nunit.core.interfaces.dll
  90. BIN Tools/Gallio/v3.3.454/NUnit/Latest/nunit.framework.dll
  91. +6 −6 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/nunit.framework.dll.tdnet
  92. +10,407 −10,088 Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/nunit.framework.xml
  93. BIN Tools/Gallio/{v3.1.397/NUnit/v2.5 → v3.3.454/NUnit/Latest}/nunit.mocks.dll
  94. BIN Tools/Gallio/v3.3.454/NUnit/Latest/nunit.util.dll
  95. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Assembly.ico
  96. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Container.ico
  97. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Fixture.ico
  98. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Gallio.ControlPanel.ico
  99. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Gallio.Echo.ico
  100. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Gallio.Icarus.ico
  101. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Gallio.Utility.ico
  102. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Gallio.ico
  103. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/MbUnit.ico
  104. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Test.ico
  105. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/Unsupported.ico
  106. +84 −0 Tools/Gallio/v3.3.454/Resources/css/Gallio-Report.Generated.css
  107. +583 −0 Tools/Gallio/v3.3.454/Resources/css/Gallio-Report.css
  108. BIN Tools/Gallio/v3.3.454/Resources/img/Failed.gif
  109. BIN Tools/Gallio/v3.3.454/Resources/img/FullStop.gif
  110. BIN Tools/Gallio/v3.3.454/Resources/img/GallioTestReportHeader.png
  111. BIN Tools/Gallio/v3.3.454/Resources/img/Ignored.gif
  112. BIN Tools/Gallio/v3.3.454/Resources/img/Minus.gif
  113. BIN Tools/Gallio/v3.3.454/Resources/img/Passed.gif
  114. BIN Tools/Gallio/v3.3.454/Resources/img/Plus.gif
  115. BIN Tools/Gallio/v3.3.454/Resources/img/UnknownTestKind.png
  116. BIN Tools/Gallio/v3.3.454/Resources/img/header-background.gif
  117. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Assembly.png
  118. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/File.png
  119. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Fixture.png
  120. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Group.png
  121. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/MbUnitUnmanagedC++TestLibrary.png
  122. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/MbUnitv2Assembly.png
  123. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/MbUnitv3Assembly.png
  124. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/NUnitv248Assembly.png
  125. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/NUnitv253Assembly.png
  126. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/NUnitv254+Assembly.png
  127. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Namespace.png
  128. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/RSpecExample.png
  129. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/RSpecExampleGroup.png
  130. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/RSpecFile.png
  131. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Root.png
  132. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Suite.png
  133. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Test.png
  134. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/Unsupported.png
  135. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/csUnitAssembly.png
  136. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/xUnitv161Assembly.png
  137. BIN Tools/Gallio/v3.3.454/Resources/img/testkinds/xUnitv17+Assembly.png
  138. +244 −0 Tools/Gallio/v3.3.454/Resources/js/Gallio-Report.js
  139. BIN Tools/Gallio/v3.3.454/Resources/js/expressInstall.swf
  140. BIN Tools/Gallio/v3.3.454/Resources/js/player.swf
  141. +4 −0 Tools/Gallio/v3.3.454/Resources/js/swfobject.js
  142. +121 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html+xhtml.detailed-item.log.vm
  143. +128 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html+xhtml.detailed-item.vm
  144. +57 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html+xhtml.summary-item.vm
  145. +238 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html+xhtml.vm
  146. +6 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html-condensed.vm
  147. +6 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.html.vm
  148. +42 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.txt-common.vm
  149. +5 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.txt-condensed.vm
  150. +5 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.txt.vm
  151. +6 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.xhtml-condensed.vm
  152. +6 −0 Tools/Gallio/v3.3.454/Resources/vm/Gallio-Report.xhtml.vm
  153. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.ccnet-details-condensed.xsl
  154. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.ccnet-details.xsl
  155. +356 −356 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.common.xsl
  156. +1,060 −1,060 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.html+xhtml.xsl
  157. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.html-condensed.xsl
  158. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.html.xsl
  159. +227 −227 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.txt-common.xsl
  160. +11 −11 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.txt-condensed.xsl
  161. +11 −11 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.txt.xsl
  162. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.xhtml-condensed.xsl
  163. 0 Tools/Gallio/{v3.1.397 → v3.3.454}/Resources/xsl/Gallio-Report.xhtml.xsl
  164. +1 −1 rakefile.rb
View
2 .gitignore
@@ -16,5 +16,5 @@ NDependOut
/packages
install.ps1
mspec.nuspec
-Source/Machine.Specifications.GallioAdapter.3.1/Machine.Specifications.GallioAdapter.plugin
+Source/Machine.Specifications.GallioAdapter/Machine.Specifications.GallioAdapter.plugin
Source/Machine.Specifications.TDNetRunner/Machine.Specifications.dll.tdnet
View
14 Libraries/Gallio/3.1/Gallio License.txt
@@ -1,14 +0,0 @@
-Copyright 2005-2008 Gallio Project - http://www.gallio.org/
-Portions Copyright 2000-2004 Jonathan De Halleux, Jamie Cansdale
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
View
BIN Libraries/Gallio/3.1/Gallio.XmlSerializers.dll
Binary file not shown.
View
BIN Libraries/Gallio/3.1/Gallio.dll
Binary file not shown.
View
BIN Libraries/Gallio/3.1/Gallio.pdb
Binary file not shown.
View
37,863 Libraries/Gallio/3.1/Gallio.xml
0 additions, 37,863 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
442 Libraries/Gallio/3.1/Gallio.xsd
@@ -1,442 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<xs:schema xmlns:tns="http://www.gallio.org/" elementFormDefault="qualified" targetNamespace="http://www.gallio.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="plugin" nillable="true" type="tns:Plugin" />
- <xs:complexType name="Plugin">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="dependencies" type="tns:ArrayOfDependency" />
- <xs:element minOccurs="0" maxOccurs="1" name="files" type="tns:ArrayOfFile" />
- <xs:element minOccurs="0" maxOccurs="1" name="assemblies" type="tns:ArrayOfAssembly" />
- <xs:element minOccurs="0" maxOccurs="1" name="services" type="tns:ArrayOfService" />
- <xs:element minOccurs="0" maxOccurs="1" name="components" type="tns:ArrayOfComponent" />
- <xs:element minOccurs="0" maxOccurs="1" name="parameters" type="tns:KeyValueTable" />
- <xs:element minOccurs="0" maxOccurs="1" name="traits" type="tns:KeyValueTable" />
- <xs:element minOccurs="0" maxOccurs="1" name="probingPaths" type="tns:ArrayOfString" />
- </xs:sequence>
- <xs:attribute name="pluginId" type="xs:string" />
- <xs:attribute name="enableCondition" type="xs:string" />
- <xs:attribute name="recommendedInstallationPath" type="xs:string" />
- <xs:attribute name="pluginType" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfDependency">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="dependency" type="tns:Dependency" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="Dependency">
- <xs:attribute name="pluginId" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfFile">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="file" type="tns:File" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="File">
- <xs:attribute name="path" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfAssembly">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="assembly" type="tns:Assembly" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="Assembly">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="bindingRedirects" type="tns:ArrayOfBindingRedirect" />
- </xs:sequence>
- <xs:attribute name="fullName" type="xs:string" />
- <xs:attribute name="codeBase" type="xs:string" />
- <xs:attribute name="qualifyPartialName" type="xs:boolean" use="required" />
- <xs:attribute name="applyPublisherPolicy" type="xs:boolean" use="required" />
- </xs:complexType>
- <xs:complexType name="ArrayOfBindingRedirect">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="bindingRedirect" type="tns:BindingRedirect" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="BindingRedirect">
- <xs:attribute name="oldVersion" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfService">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="service" type="tns:Service" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="Service">
- <xs:attribute name="serviceId" type="xs:string" />
- <xs:attribute name="serviceType" type="xs:string" />
- <xs:attribute name="defaultComponentType" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfComponent">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="component" type="tns:Component" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="Component">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="parameters" type="tns:KeyValueTable" />
- <xs:element minOccurs="0" maxOccurs="1" name="traits" type="tns:KeyValueTable" />
- </xs:sequence>
- <xs:attribute name="componentId" type="xs:string" />
- <xs:attribute name="serviceId" type="xs:string" />
- <xs:attribute name="componentType" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="KeyValueTable">
- <xs:sequence>
- <xs:any minOccurs="0" maxOccurs="unbounded" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfString">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="probingPath" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:element name="testProject" nillable="true" type="tns:TestProjectData" />
- <xs:complexType name="TestProjectData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="testPackage" type="tns:TestPackageData" />
- <xs:element minOccurs="0" maxOccurs="1" name="testFilters" type="tns:ArrayOfFilterInfo" />
- <xs:element minOccurs="0" maxOccurs="1" name="extensionSpecifications" type="tns:ArrayOfString4" />
- <xs:element minOccurs="0" maxOccurs="1" name="reportDirectory" type="xs:string" />
- <xs:element minOccurs="0" maxOccurs="1" name="reportNameFormat" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TestPackageData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="files" type="tns:ArrayOfString1" />
- <xs:element minOccurs="0" maxOccurs="1" name="hintDirectories" type="tns:ArrayOfString2" />
- <xs:element minOccurs="0" maxOccurs="1" name="excludedFrameworkIds" type="tns:ArrayOfString3" />
- <xs:element minOccurs="0" maxOccurs="1" name="properties" type="tns:PropertySet" />
- </xs:sequence>
- <xs:attribute name="shadowCopy" type="xs:boolean" use="required" />
- <xs:attribute name="debug" type="xs:boolean" use="required" />
- <xs:attribute name="applicationBaseDirectory" type="xs:string" />
- <xs:attribute name="workingDirectory" type="xs:string" />
- <xs:attribute name="runtimeVersion" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfString1">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="file" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfString2">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="hintDirectory" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfString3">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="excludedFrameworkId" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfFilterInfo">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="testFilter" type="tns:FilterInfo" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="FilterInfo">
- <xs:attribute name="filterName" type="xs:string" />
- <xs:attribute name="filterExpr" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="ArrayOfString4">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="extensionSpecification" type="xs:string" />
- </xs:sequence>
- </xs:complexType>
- <xs:element name="report" nillable="true" type="tns:Report" />
- <xs:complexType name="Report">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="testPackage" type="tns:TestPackageData" />
- <xs:element minOccurs="0" maxOccurs="1" name="testModel" type="tns:TestModelData" />
- <xs:element minOccurs="0" maxOccurs="1" name="testPackageRun" type="tns:TestPackageRun" />
- <xs:element minOccurs="0" maxOccurs="1" name="logEntries" type="tns:ArrayOfLogEntry" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TestModelData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="test" type="tns:TestData" />
- <xs:element minOccurs="0" maxOccurs="1" name="annotations" type="tns:ArrayOfAnnotationData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TestData">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:TestComponentData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="children" type="tns:ArrayOfTestData" />
- <xs:element minOccurs="0" maxOccurs="1" name="parameters" type="tns:ArrayOfTestParameterData" />
- </xs:sequence>
- <xs:attribute name="fullName" type="xs:string" />
- <xs:attribute name="isTestCase" type="xs:boolean" use="required" />
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="TestComponentData" abstract="true">
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="codeReference" type="tns:CodeReference" />
- <xs:element minOccurs="1" maxOccurs="1" name="codeLocation" type="tns:CodeLocation" />
- <xs:element minOccurs="0" maxOccurs="1" name="metadata" type="tns:PropertyBag" />
- </xs:sequence>
- <xs:attribute name="id" type="xs:string" />
- <xs:attribute name="name" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="TestStepData">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:TestComponentData">
- <xs:attribute name="fullName" type="xs:string" />
- <xs:attribute name="parentId" type="xs:string" />
- <xs:attribute name="testId" type="xs:string" />
- <xs:attribute name="isPrimary" type="xs:boolean" use="required" />
- <xs:attribute name="isTestCase" type="xs:boolean" use="required" />
- <xs:attribute name="isDynamic" type="xs:boolean" use="required" />
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="TestParameterData">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:TestComponentData" />
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ArrayOfTestData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="test" type="tns:TestData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfTestParameterData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="parameter" type="tns:TestParameterData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfAnnotationData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="annotation" type="tns:AnnotationData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="AnnotationData">
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="codeLocation" type="tns:CodeLocation" />
- <xs:element minOccurs="1" maxOccurs="1" name="codeReference" type="tns:CodeReference" />
- </xs:sequence>
- <xs:attribute name="type" type="tns:AnnotationType" use="required" />
- <xs:attribute name="message" type="xs:string" />
- <xs:attribute name="details" type="xs:string" />
- </xs:complexType>
- <xs:simpleType name="AnnotationType">
- <xs:restriction base="xs:string">
- <xs:enumeration value="info" />
- <xs:enumeration value="warning" />
- <xs:enumeration value="error" />
- </xs:restriction>
- </xs:simpleType>
- <xs:complexType name="TestPackageRun">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="testStepRun" type="tns:TestStepRun" />
- <xs:element minOccurs="0" maxOccurs="1" name="statistics" type="tns:Statistics" />
- </xs:sequence>
- <xs:attribute name="startTime" type="xs:dateTime" use="required" />
- <xs:attribute name="endTime" type="xs:dateTime" use="required" />
- </xs:complexType>
- <xs:complexType name="TestStepRun">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="testStep" type="tns:TestStepData" />
- <xs:element minOccurs="0" maxOccurs="1" name="children" type="tns:ArrayOfTestStepRun" />
- <xs:element minOccurs="0" maxOccurs="1" name="result" type="tns:TestResult" />
- <xs:element minOccurs="0" maxOccurs="1" name="testLog" type="tns:StructuredDocument" />
- </xs:sequence>
- <xs:attribute name="startTime" type="xs:dateTime" use="required" />
- <xs:attribute name="endTime" type="xs:dateTime" use="required" />
- </xs:complexType>
- <xs:complexType name="ArrayOfTestStepRun">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="testStepRun" type="tns:TestStepRun" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TestResult">
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="outcome" type="tns:TestOutcome" />
- </xs:sequence>
- <xs:attribute name="assertCount" type="xs:int" use="required" />
- <xs:attribute name="duration" type="xs:double" use="required" />
- </xs:complexType>
- <xs:complexType name="StructuredDocument">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="streams" type="tns:ArrayOfStructuredStream" />
- <xs:element minOccurs="0" maxOccurs="1" name="attachments" type="tns:ArrayOfAttachmentData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="ArrayOfStructuredStream">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="stream" type="tns:StructuredStream" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="StructuredStream">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="body" type="tns:BodyTag" />
- </xs:sequence>
- <xs:attribute name="name" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="BodyTag">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:ContainerTag" />
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ContainerTag" abstract="true">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:Tag">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="contents" type="tns:ArrayOfChoice1" />
- </xs:sequence>
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="Tag" abstract="true" />
- <xs:complexType name="EmbedTag">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:Tag">
- <xs:attribute name="attachmentName" type="xs:string" />
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ArrayOfChoice1">
- <xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" name="marker" type="tns:MarkerTag" />
- <xs:element minOccurs="0" maxOccurs="1" name="section" type="tns:SectionTag" />
- <xs:element minOccurs="0" maxOccurs="1" name="embed" type="tns:EmbedTag" />
- <xs:element minOccurs="0" maxOccurs="1" name="text" type="xs:string" />
- </xs:choice>
- </xs:complexType>
- <xs:complexType name="MarkerTag">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:ContainerTag">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="attributes" type="tns:ArrayOfAttribute" />
- </xs:sequence>
- <xs:attribute name="class" type="xs:string" />
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ArrayOfAttribute">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="attribute" type="tns:Attribute" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="Attribute">
- <xs:attribute name="name" type="xs:string" />
- <xs:attribute name="value" type="xs:string" />
- </xs:complexType>
- <xs:complexType name="SectionTag">
- <xs:complexContent mixed="false">
- <xs:extension base="tns:ContainerTag">
- <xs:attribute name="name" type="xs:string" />
- </xs:extension>
- </xs:complexContent>
- </xs:complexType>
- <xs:complexType name="ArrayOfAttachmentData">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="attachment" type="tns:AttachmentData" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="AttachmentData">
- <xs:simpleContent>
- <xs:extension base="xs:string">
- <xs:attribute name="name" type="xs:string" />
- <xs:attribute name="contentType" type="xs:string" />
- <xs:attribute name="encoding" type="tns:AttachmentEncoding" use="required" />
- <xs:attribute name="contentPath" type="xs:string" />
- <xs:attribute name="contentDisposition" type="tns:AttachmentContentDisposition" use="required" />
- </xs:extension>
- </xs:simpleContent>
- </xs:complexType>
- <xs:simpleType name="AttachmentEncoding">
- <xs:restriction base="xs:string">
- <xs:enumeration value="text" />
- <xs:enumeration value="base64" />
- </xs:restriction>
- </xs:simpleType>
- <xs:simpleType name="AttachmentContentDisposition">
- <xs:restriction base="xs:string">
- <xs:enumeration value="absent" />
- <xs:enumeration value="link" />
- <xs:enumeration value="inline" />
- </xs:restriction>
- </xs:simpleType>
- <xs:complexType name="Statistics">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="1" name="outcomeSummaries" type="tns:ArrayOfTestOutcomeSummary" />
- </xs:sequence>
- <xs:attribute name="assertCount" type="xs:int" use="required" />
- <xs:attribute name="duration" type="xs:double" use="required" />
- <xs:attribute name="runCount" type="xs:int" use="required" />
- <xs:attribute name="passedCount" type="xs:int" use="required" />
- <xs:attribute name="failedCount" type="xs:int" use="required" />
- <xs:attribute name="inconclusiveCount" type="xs:int" use="required" />
- <xs:attribute name="skippedCount" type="xs:int" use="required" />
- <xs:attribute name="testCount" type="xs:int" use="required" />
- <xs:attribute name="stepCount" type="xs:int" use="required" />
- </xs:complexType>
- <xs:complexType name="ArrayOfTestOutcomeSummary">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="outcomeSummary" type="tns:TestOutcomeSummary" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="TestOutcomeSummary">
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="1" name="outcome" type="tns:TestOutcome" />
- </xs:sequence>
- <xs:attribute name="count" type="xs:int" use="required" />
- </xs:complexType>
- <xs:complexType name="ArrayOfLogEntry">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="logEntry" type="tns:LogEntry" />
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="LogEntry">
- <xs:attribute name="severity" type="tns:LogSeverity" use="required" />
- <xs:attribute name="message" type="xs:string" />
- <xs:attribute name="details" type="xs:string" />
- </xs:complexType>
- <xs:simpleType name="LogSeverity">
- <xs:restriction base="xs:string">
- <xs:enumeration value="debug" />
- <xs:enumeration value="info" />
- <xs:enumeration value="important" />
- <xs:enumeration value="warning" />
- <xs:enumeration value="error" />
- </xs:restriction>
- </xs:simpleType>
- <xs:complexType name="TestOutcome">
- <xs:attribute name="status" type="xs:string" use="required" />
- <xs:attribute name="value" type="xs:string" use="optional" />
- </xs:complexType>
- <xs:complexType name="PropertyBag">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="entry">
- <xs:complexType>
- <xs:sequence>
- <xs:element minOccurs="1" maxOccurs="unbounded" name="value" type="xs:string" />
- </xs:sequence>
- <xs:attribute name="key" type="xs:string" use="required" />
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="PropertySet">
- <xs:sequence>
- <xs:element minOccurs="0" maxOccurs="unbounded" name="entry">
- <xs:complexType>
- <xs:attribute name="key" type="xs:string" use="required" />
- <xs:attribute name="value" type="xs:string" use="required" />
- </xs:complexType>
- </xs:element>
- </xs:sequence>
- </xs:complexType>
- <xs:complexType name="CodeLocation">
- <xs:attribute name="path" type="xs:string" use="optional" />
- <xs:attribute name="line" type="xs:int" use="optional" />
- <xs:attribute name="column" type="xs:int" use="optional" />
- </xs:complexType>
- <xs:complexType name="CodeReference">
- <xs:attribute name="assembly" type="xs:string" use="optional" />
- <xs:attribute name="namespace" type="xs:string" use="optional" />
- <xs:attribute name="type" type="xs:string" use="optional" />
- <xs:attribute name="member" type="xs:string" use="optional" />
- <xs:attribute name="parameter" type="xs:string" use="optional" />
- </xs:complexType>
-</xs:schema>
View
12 Machine.Specifications.sln
@@ -52,12 +52,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ReSh
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ReSharperRunner.5.0", "Source\Machine.Specifications.ReSharperRunner.5.0\Machine.Specifications.ReSharperRunner.5.0.csproj", "{F78E1AB8-7F34-4C32-BC4D-558CAA94DB7C}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter.3.1", "Source\Machine.Specifications.GallioAdapter.3.1\Machine.Specifications.GallioAdapter.3.1.csproj", "{D1B0D26E-BEA9-45EF-87C2-0ED5FC9CAC3F}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter.3.1.TestResources", "Source\Machine.Specifications.GallioAdapter.3.1.TestResources\Machine.Specifications.GallioAdapter.3.1.TestResources.csproj", "{263ABAC8-C6B2-497D-93E3-3773849CEDD3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter.3.1.Tests", "Source\Machine.Specifications.GallioAdapter.3.1.Tests\Machine.Specifications.GallioAdapter.3.1.Tests.csproj", "{9C3D968A-AA2C-4612-94E8-C3FD16BFEEED}"
-EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.Example.Clr4", "Source\Machine.Specifications.Example.Clr4\Machine.Specifications.Example.Clr4.csproj", "{0CE411DF-CFC3-45E3-96AD-2F872D99E1B1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ReSharperRunner.5.1", "Source\Machine.Specifications.ReSharperRunner.5.1\Machine.Specifications.ReSharperRunner.5.1.csproj", "{C47B3023-AC8D-4DFD-AAC2-006C4772B699}"
@@ -70,6 +64,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ReSh
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ReSharperRunner.6.1", "Source\Machine.Specifications.ReSharperRunner.6.1\Machine.Specifications.ReSharperRunner.6.1.csproj", "{AEF08081-3BB5-4654-9F21-C066647B370A}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter", "Source\Machine.Specifications.GallioAdapter\Machine.Specifications.GallioAdapter.csproj", "{D1B0D26E-BEA9-45EF-87C2-0ED5FC9CAC3F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter.TestResources", "Source\Machine.Specifications.GallioAdapter.TestResources\Machine.Specifications.GallioAdapter.TestResources.csproj", "{263ABAC8-C6B2-497D-93E3-3773849CEDD3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.GallioAdapter.Tests", "Source\Machine.Specifications.GallioAdapter.Tests\Machine.Specifications.GallioAdapter.Tests.csproj", "{9C3D968A-AA2C-4612-94E8-C3FD16BFEEED}"
+EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{A3F86654-7BCD-4E8D-9258-7CFE0AB14D0B}"
ProjectSection(SolutionItems) = preProject
.nuget\NuGet.exe = .nuget\NuGet.exe
View
48 ...apter.3.1.TestResources/FailingContext.cs → ...ioAdapter.TestResources/FailingContext.cs
@@ -1,24 +1,24 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Machine.Specifications.GallioAdapter.TestResources
-{
- [Subject("Scott Bellware")]
- public class at_any_given_moment
- {
- It will_fail = () =>
- {
- throw new Exception("hi scott, love you, miss you.");
- };
- }
-
- [Tags("example")]
- public class failing_specification_assertions
- {
- It failing_boolean_assertion = () => false.ShouldBeTrue();
- It failing_equality_assertion = () => 1.ShouldEqual(2);
- It failing_contains_assertion = () => new int[] { 1, 2, 3, 5, }.ShouldContain(4);
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Machine.Specifications.GallioAdapter.TestResources
+{
+ [Subject("Scott Bellware")]
+ public class at_any_given_moment
+ {
+ It will_fail = () =>
+ {
+ throw new Exception("hi scott, love you, miss you.");
+ };
+ }
+
+ [Tags("example")]
+ public class failing_specification_assertions
+ {
+ It failing_boolean_assertion = () => false.ShouldBeTrue();
+ It failing_equality_assertion = () => 1.ShouldEqual(2);
+ It failing_contains_assertion = () => new int[] { 1, 2, 3, 5, }.ShouldContain(4);
+ }
+}
View
82 ...apter.3.1.TestResources/IgnoredContext.cs → ...ioAdapter.TestResources/IgnoredContext.cs
@@ -1,41 +1,41 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Machine.Specifications.GallioAdapter.TestResources
-{
- [Ignore]
- public class ignored_context_spec
- {
- public static bool established = false;
- public static bool because = false;
- public static bool spec = false;
-
- Establish context = () =>
- established = true;
-
- Because action = () =>
- because = true;
-
- It should = () =>
- spec = true;
- }
-
- public class ignored_specification_spec
- {
- public static bool established = false;
- public static bool because = false;
- public static bool spec = false;
-
- Establish context = () =>
- established = true;
-
- Because action = () =>
- because = true;
-
- [Ignore]
- It should = () =>
- spec = true;
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Machine.Specifications.GallioAdapter.TestResources
+{
+ [Ignore]
+ public class ignored_context_spec
+ {
+ public static bool established = false;
+ public static bool because = false;
+ public static bool spec = false;
+
+ Establish context = () =>
+ established = true;
+
+ Because action = () =>
+ because = true;
+
+ It should = () =>
+ spec = true;
+ }
+
+ public class ignored_specification_spec
+ {
+ public static bool established = false;
+ public static bool because = false;
+ public static bool spec = false;
+
+ Establish context = () =>
+ established = true;
+
+ Because action = () =>
+ because = true;
+
+ [Ignore]
+ It should = () =>
+ spec = true;
+ }
+}
View
8 ...ns.GallioAdapter.3.1.TestResources.csproj → ...ations.GallioAdapter.TestResources.csproj
@@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Machine.Specifications.GallioAdapter.TestResources</RootNamespace>
- <AssemblyName>Machine.Specifications.TestGallioAdapter.3.1.TestResources</AssemblyName>
+ <AssemblyName>Machine.Specifications.GallioAdapter.TestResources</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
@@ -27,7 +27,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>..\..\Build\Debug\Tests\Gallio\Machine.Specifications.TestGallioAdapter.3.1.TestResources.XML</DocumentationFile>
+ <DocumentationFile>..\..\Build\Debug\Tests\Gallio\Machine.Specifications.GallioAdapter.TestResources.xml</DocumentationFile>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
@@ -37,7 +37,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
- <DocumentationFile>..\..\Build\Release\Tests\Gallio\Machine.Specifications.TestGallioAdapter.3.1.TestResources.XML</DocumentationFile>
+ <DocumentationFile>..\..\Build\Release\Tests\Gallio\Machine.Specifications.GallioAdapter.TestResources.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -75,4 +75,4 @@
<Target Name="AfterBuild">
</Target>
-->
-</Project>
+</Project>
View
40 ....TestResources/Properties/AssemblyInfo.cs → ....TestResources/Properties/AssemblyInfo.cs
@@ -1,21 +1,21 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-
-[assembly: AssemblyTitle("Machine.Specifications.Adapter.TestResources")]
-[assembly: AssemblyDescription("Machine.Specifications.Adapter.TestResources Description")]
-[assembly: AssemblyConfiguration("Test")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+
+[assembly: AssemblyTitle("Machine.Specifications.GallioAdapter.TestResources")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("Test")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+
[assembly: Guid("eaf123d4-967b-4318-ba5e-13d7a7e84a57")]
View
80 ...ioAdapter.3.1.TestResources/SimpleSpec.cs → ...GallioAdapter.TestResources/SimpleSpec.cs
@@ -1,40 +1,40 @@
-// Copyright 2005-2009 Gallio Project - http://www.gallio.org/
-// Portions Copyright 2000-2004 Jonathan de Halleux
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// Modified by and Portions Copyright 2008 Machine Project
-
-// This was adapted from the simple test used to validate the MS Test gallio adapter
-// used to validate test exploration/execution
-
-namespace Machine.Specifications.GallioAdapter.TestResources
-{
- /// <summary>
- /// A simple test specification.
- /// </summary>
- public class simple_test_spec
- {
- /// <summary>
- /// A passing specification.
- /// </summary>
- It pass = () =>
- true.ShouldBeTrue();
-
- /// <summary>
- /// A failing specification.
- /// </summary>
- It fail = () =>
- true.ShouldBeFalse();
- }
-}
+// Copyright 2005-2009 Gallio Project - http://www.gallio.org/
+// Portions Copyright 2000-2004 Jonathan de Halleux
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Modified by and Portions Copyright 2008 Machine Project
+
+// This was adapted from the simple test used to validate the MS Test gallio adapter
+// used to validate test exploration/execution
+
+namespace Machine.Specifications.GallioAdapter.TestResources
+{
+ /// <summary>
+ /// A simple test specification.
+ /// </summary>
+ public class simple_test_spec
+ {
+ /// <summary>
+ /// A passing specification.
+ /// </summary>
+ It pass = () =>
+ true.ShouldBeTrue();
+
+ /// <summary>
+ /// A failing specification.
+ /// </summary>
+ It fail = () =>
+ true.ShouldBeFalse();
+ }
+}
View
28 ...oAdapter.3.1.TestResources/SubjectSpec.cs → ...allioAdapter.TestResources/SubjectSpec.cs
@@ -1,14 +1,14 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Machine.Specifications.GallioAdapter.TestResources
-{
- [Subject( typeof(bool), "Testing out the framework")]
- public class subject_spec
- {
- It should_have_a_subject_as_the_category = () =>
- true.ShouldBeTrue();
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Machine.Specifications.GallioAdapter.TestResources
+{
+ [Subject( typeof(bool), "Testing out the framework")]
+ public class subject_spec
+ {
+ It should_have_a_subject_as_the_category = () =>
+ true.ShouldBeTrue();
+ }
+}
View
42 ...ioAdapter.3.1.TestResources/TagContext.cs → ...GallioAdapter.TestResources/TagContext.cs
@@ -1,21 +1,21 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-
-namespace Machine.Specifications.GallioAdapter.TestResources
-{
- [Tags("tag")]
- public class tag_spec
- {
- It should = () =>
- true.ShouldBeTrue();
- }
-
- [Tags("one","two", "three")]
- public class multiple_tag_spec
- {
- It should = () =>
- true.ShouldBeTrue();
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace Machine.Specifications.GallioAdapter.TestResources
+{
+ [Tags("tag")]
+ public class tag_spec
+ {
+ It should = () =>
+ true.ShouldBeTrue();
+ }
+
+ [Tags("one","two", "three")]
+ public class multiple_tag_spec
+ {
+ It should = () =>
+ true.ShouldBeTrue();
+ }
+}
View
58 ...dapter.3.1.Tests/AssemblyConfigFixture.cs → ...lioAdapter.Tests/AssemblyConfigFixture.cs
@@ -1,29 +1,29 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using NUnit.Framework;
-using Gallio.Runtime;
-
-namespace Machine.Specifications.GallioAdapter.Tests
-{
- /// <summary>
- /// A really easy way to make sure the debugger is attached when tests are running
- /// </summary>
- [SetUpFixture]
- public class AssemblyConfigFixture
- {
- static bool _running = false;
-
- [SetUp]
- public void Setup()
- {
- if (!_running)
- {
- //System.Diagnostics.Debugger.Launch();
-
- _running = true;
- }
- }
- }
-}
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using NUnit.Framework;
+using Gallio.Runtime;
+
+namespace Machine.Specifications.GallioAdapter.Tests
+{
+ /// <summary>
+ /// A really easy way to make sure the debugger is attached when tests are running
+ /// </summary>
+ [SetUpFixture]
+ public class AssemblyConfigFixture
+ {
+ static bool _running = false;
+
+ [SetUp]
+ public void Setup()
+ {
+ if (!_running)
+ {
+ //System.Diagnostics.Debugger.Launch();
+
+ _running = true;
+ }
+ }
+ }
+}
View
110 ...oAdapter.3.1.Tests/BankingContextTests.cs → ...allioAdapter.Tests/BankingContextTests.cs
@@ -1,55 +1,55 @@
-using System.Linq;
-using NUnit.Framework;
-
-using TestStatus = Gallio.Model.TestStatus;
-
-namespace Machine.Specifications.GallioAdapter.Tests
-{
- [TestFixture]
- public class BankingSpecs_when_transferring_between_two_accounts_Tests
- {
- Gallio.Runner.Reports.Schema.TestStepRun _run;
-
- [SetUp]
- public void Setup()
- {
- _run = GallioRunner.RunAllSpecificationsFor<Example.when_transferring_between_two_accounts>();
- }
-
- [Test]
- public void ShouldPassAllSpecifications()
- {
- _run.AllTestStepRuns.All(x => x.Result.Outcome.Status == TestStatus.Passed).ShouldBeTrue();
- }
-
- [Test]
- public void ShouldHaveTwoChildren()
- {
- _run.Children.Count().ShouldEqual(2);
- }
- }
-
- [TestFixture]
- public class BankingSpecs_when_transferring_an_amount_larger_than_the_balance_of_the_from_account_Tests
- {
- Gallio.Runner.Reports.Schema.TestStepRun _run;
-
- [SetUp]
- public void Setup()
- {
- _run = GallioRunner.RunAllSpecificationsFor<Example.when_transferring_an_amount_larger_than_the_balance_of_the_from_account>();
- }
-
- [Test]
- public void ShouldPassAllSpecifications()
- {
- _run.AllTestStepRuns.All(x => x.Result.Outcome.Status == TestStatus.Passed).ShouldBeTrue();
- }
-
- [Test]
- public void ShouldHaveOneChild()
- {
- _run.Children.Count().ShouldEqual(1);
- }
- }
-}
+using System.Linq;
+using NUnit.Framework;
+
+using TestStatus = Gallio.Model.TestStatus;
+
+namespace Machine.Specifications.GallioAdapter.Tests
+{
+ [TestFixture]
+ public class BankingSpecs_when_transferring_between_two_accounts_Tests
+ {
+ Gallio.Runner.Reports.Schema.TestStepRun _run;
+
+ [SetUp]
+ public void Setup()
+ {
+ _run = GallioRunner.RunAllSpecificationsFor<Example.when_transferring_between_two_accounts>();
+ }
+
+ [Test]
+ public void ShouldPassAllSpecifications()
+ {
+ _run.AllTestStepRuns.All(x => x.Result.Outcome.Status == TestStatus.Passed).ShouldBeTrue();
+ }
+
+ [Test]
+ public void ShouldHaveTwoChildren()
+ {
+ _run.Children.Count().ShouldEqual(2);
+ }
+ }
+
+ [TestFixture]
+ public class BankingSpecs_when_transferring_an_amount_larger_than_the_balance_of_the_from_account_Tests
+ {
+ Gallio.Runner.Reports.Schema.TestStepRun _run;
+
+ [SetUp]
+ public void Setup()
+ {
+ _run = GallioRunner.RunAllSpecificationsFor<Example.when_transferring_an_amount_larger_than_the_balance_of_the_from_account>();
+ }
+
+ [Test]
+ public void ShouldPassAllSpecifications()
+ {
+ _run.AllTestStepRuns.All(x => x.Result.Outcome.Status == TestStatus.Passed).ShouldBeTrue();
+ }
+
+ [Test]
+ public void ShouldHaveOneChild()
+ {
+ _run.Children.Count().ShouldEqual(1);
+ }
+ }
+}
View
124 ...GallioAdapter.3.1.Tests/EmptySpecTests.cs → ...ons.GallioAdapter.Tests/EmptySpecTests.cs
@@ -1,62 +1,62 @@
-using System.Linq;
-using Gallio.Common.Markup;
-using Gallio.Model;
-using NUnit.Framework;
-
-namespace Machine.Specifications.GallioAdapter.Tests
-{
- [TestFixture]
- public class EmptySpecTests
- {
- Gallio.Runner.Reports.Schema.TestStepRun _run;
-
- [SetUp]
- public void Setup()
- {
- _run = GallioRunner.RunAllSpecificationsFor<Example.when_a_customer_first_views_the_account_summary_page>();
- }
-
- [Test]
- public void ShouldHaveLeftTestPending()
- {
- _run.Result.Outcome.ShouldEqual( TestOutcome.Pending );
- }
-
- [Test]
- public void ShouldHaveLeftAllThreeChildrenPending()
- {
- _run.Children.Count().ShouldEqual(3);
- _run.Children.All(c => c.Result.Outcome == TestOutcome.Pending).ShouldBeTrue();
- }
-
- [Test]
- public void ShouldIndicateThat_should_display_all_account_transactions_for_the_past_thirty_days_IsNotImplemented()
- {
- AssertNotImplementedFor("should display all account transactions for the past thirty days");
- }
-
- [Test]
- public void ShouldIndicateThat_should_display_debit_amounts_in_red_text_IsNotImplemented()
- {
- AssertNotImplementedFor("should display debit amounts in red text");
- }
-
- [Test]
- public void ShouldIndicateThat_should_display_deposit_amounts_in_black_text_IsNotImplemented()
- {
- AssertNotImplementedFor("should display deposit amounts in black text");
- }
-
- void AssertNotImplementedFor(string spec)
- {
- var expected = string.Format("{0} (NOT IMPLEMENTED)", spec);
- var child = _run.Children.Single(x => x.Step.Name == spec);
-
- var log = child.TestLog.GetStream(MarkupStreamNames.Warnings).ToString();
- log.Contains( expected ).ShouldBeTrue();
-
- child.Result.Outcome.ShouldEqual(TestOutcome.Pending);
- _run.Result.Outcome.ShouldEqual(TestOutcome.Pending);
- }
- }
-}
+using System.Linq;
+using Gallio.Common.Markup;
+using Gallio.Model;
+using NUnit.Framework;
+
+namespace Machine.Specifications.GallioAdapter.Tests
+{
+ [TestFixture]
+ public class EmptySpecTests
+ {
+ Gallio.Runner.Reports.Schema.TestStepRun _run;
+
+ [SetUp]
+ public void Setup()
+ {
+ _run = GallioRunner.RunAllSpecificationsFor<Example.when_a_customer_first_views_the_account_summary_page>();
+ }
+
+ [Test]
+ public void ShouldHaveLeftTestPending()
+ {
+ _run.Result.Outcome.ShouldEqual( TestOutcome.Pending );
+ }
+
+ [Test]
+ public void ShouldHaveLeftAllThreeChildrenPending()
+ {
+ _run.Children.Count().ShouldEqual(3);
+ _run.Children.All(c => c.Result.Outcome == TestOutcome.Pending).ShouldBeTrue();
+ }
+
+ [Test]
+ public void ShouldIndicateThat_should_display_all_account_transactions_for_the_past_thirty_days_IsNotImplemented()
+ {
+ AssertNotImplementedFor("should display all account transactions for the past thirty days");
+ }
+
+ [Test]
+ public void ShouldIndicateThat_should_display_debit_amounts_in_red_text_IsNotImplemented()
+ {
+ AssertNotImplementedFor("should display debit amounts in red text");
+ }
+
+ [Test]
+ public void ShouldIndicateThat_should_display_deposit_amounts_in_black_text_IsNotImplemented()
+ {
+ AssertNotImplementedFor("should display deposit amounts in black text");
+ }
+
+ void AssertNotImplementedFor(string spec)
+ {
+ var expected = string.Format("{0} (NOT IMPLEMENTED)", spec);
+ var child = _run.Children.Single(x => x.Step.Name == spec);
+
+ var log = child.TestLog.GetStream(MarkupStreamNames.Warnings).ToString();
+ log.Contains( expected ).ShouldBeTrue();
+
+ child.Result.Outcome.ShouldEqual(TestOutcome.Pending);
+ _run.Result.Outcome.ShouldEqual(TestOutcome.Pending);
+ }
+ }
+}
View
210 ...oAdapter.3.1.Tests/FailingContextTests.cs → ...allioAdapter.Tests/FailingContextTests.cs
@@ -1,105 +1,105 @@
-using System.Linq;
-using Gallio.Common.Markup;
-using Gallio.Model;
-using Machine.Specifications.GallioAdapter.TestResources;
-using NUnit.Framework;
-
-namespace Machine.Specifications.GallioAdapter.Tests
-{
- [TestFixture]
- public class SpecificationFailedDueToExceptionTests
- {
- Gallio.Runner.Reports.Schema.TestStepRun _run;
-
- [SetUp]
- public void Setup()
- {
- _run = GallioRunner.RunAllSpecificationsFor<at_any_given_moment>();
- }
-
- [Test]
- public void ShouldHaveFailedTheContext()
- {
- _run.Result.Outcome.ShouldEqual( TestOutcome.Failed);
- }
-
- [Test]
- public void ShouldHaveFailedTheOnlySpecification()
- {
- _run.Children.Count().ShouldEqual(1);
- _run.Children[0].Result.Outcome.ShouldEqual( TestOutcome.Failed);
- }
-
- [Test]
- public void ShouldWriteExceptionToTheFailureStream()
- {
- var stream = _run.Children[0].TestLog.GetStream(MarkupStreamNames.Failures);
- stream.ShouldNotBeNull();
- string content = stream.ToString();
- content.ShouldContain("hi scott, love you, miss you");
- }
- }
-
- [TestFixture]
- public class SpecificationFailedDueToAssertionTests
- {
- Gallio.Runner.Reports.Schema.TestStepRun _run;
-
- [SetUp]
- public void Setup()
- {
- _run = GallioRunner.RunAllSpecificationsFor<failing_specification_assertions>();
- }
-
- [Test]
- public void ShouldHaveFailedTheContext()
- {
- _run.Result.Outcome.ShouldEqual(TestOutcome.Failed);
- }
-
- [Test]
- public void ShouldHaveFailedTheChildSpecifications()
- {
- _run.Children.Count().ShouldEqual(3);
- _run.Children.All( child => child.Result.Outcome == TestOutcome.Failed).ShouldBeTrue();
- }
-
- [Test]
- public void ShouldWriteExceptionToTheFailureStreamForBooleanAssertion()
- {
- var child = _run.Children.Single(x => x.Step.Name == "failing boolean assertion");
- var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
- stream.ShouldNotBeNull();
- string content = stream.ToString();
-
- content.ShouldContain("Should");
- content.ShouldContain("false");
- content.ShouldContain("true");
- }
-
- [Test]
- public void ShouldWriteExceptionToTheFailureStreamForEqualityAssertion()
- {
- var child = _run.Children.Single(x => x.Step.Name == "failing equality assertion");
- var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
- stream.ShouldNotBeNull();
- string content = stream.ToString();
-
- content.ShouldContain("Expected");
- content.ShouldContain("1");
- content.ShouldContain("2");
- }
-
- [Test]
- public void ShouldWriteExceptionToTheFailureStreamForContainsAssertion()
- {
- var child = _run.Children.Single(x => x.Step.Name == "failing contains assertion");
- var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
- stream.ShouldNotBeNull();
- string content = stream.ToString();
-
- content.ShouldContain("Should");
- content.ShouldContain("4");
- }
- }
-}
+using System.Linq;
+using Gallio.Common.Markup;
+using Gallio.Model;
+using Machine.Specifications.GallioAdapter.TestResources;
+using NUnit.Framework;
+
+namespace Machine.Specifications.GallioAdapter.Tests
+{
+ [TestFixture]
+ public class SpecificationFailedDueToExceptionTests
+ {
+ Gallio.Runner.Reports.Schema.TestStepRun _run;
+
+ [SetUp]
+ public void Setup()
+ {
+ _run = GallioRunner.RunAllSpecificationsFor<at_any_given_moment>();
+ }
+
+ [Test]
+ public void ShouldHaveFailedTheContext()
+ {
+ _run.Result.Outcome.ShouldEqual( TestOutcome.Failed);
+ }
+
+ [Test]
+ public void ShouldHaveFailedTheOnlySpecification()
+ {
+ _run.Children.Count().ShouldEqual(1);
+ _run.Children[0].Result.Outcome.ShouldEqual( TestOutcome.Failed);
+ }
+
+ [Test]
+ public void ShouldWriteExceptionToTheFailureStream()
+ {
+ var stream = _run.Children[0].TestLog.GetStream(MarkupStreamNames.Failures);
+ stream.ShouldNotBeNull();
+ string content = stream.ToString();
+ content.ShouldContain("hi scott, love you, miss you");
+ }
+ }
+
+ [TestFixture]
+ public class SpecificationFailedDueToAssertionTests
+ {
+ Gallio.Runner.Reports.Schema.TestStepRun _run;
+
+ [SetUp]
+ public void Setup()
+ {
+ _run = GallioRunner.RunAllSpecificationsFor<failing_specification_assertions>();
+ }
+
+ [Test]
+ public void ShouldHaveFailedTheContext()
+ {
+ _run.Result.Outcome.ShouldEqual(TestOutcome.Failed);
+ }
+
+ [Test]
+ public void ShouldHaveFailedTheChildSpecifications()
+ {
+ _run.Children.Count().ShouldEqual(3);
+ _run.Children.All( child => child.Result.Outcome == TestOutcome.Failed).ShouldBeTrue();
+ }
+
+ [Test]
+ public void ShouldWriteExceptionToTheFailureStreamForBooleanAssertion()
+ {
+ var child = _run.Children.Single(x => x.Step.Name == "failing boolean assertion");
+ var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
+ stream.ShouldNotBeNull();
+ string content = stream.ToString();
+
+ content.ShouldContain("Should");
+ content.ShouldContain("false");
+ content.ShouldContain("true");
+ }
+
+ [Test]
+ public void ShouldWriteExceptionToTheFailureStreamForEqualityAssertion()
+ {
+ var child = _run.Children.Single(x => x.Step.Name == "failing equality assertion");
+ var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
+ stream.ShouldNotBeNull();
+ string content = stream.ToString();
+
+ content.ShouldContain("Expected");
+ content.ShouldContain("1");
+ content.ShouldContain("2");
+ }
+
+ [Test]
+ public void ShouldWriteExceptionToTheFailureStreamForContainsAssertion()
+ {
+ var child = _run.Children.Single(x => x.Step.Name == "failing contains assertion");
+ var stream = child.TestLog.GetStream(MarkupStreamNames.Failures);
+ stream.ShouldNotBeNull();
+ string content = stream.ToString();
+
+ content.ShouldContain("Should");
+ content.ShouldContain("4");
+ }
+ }
+}
View
607 ...GallioAdapter.3.1.Tests/FrameworkTests.cs → ...ons.GallioAdapter.Tests/FrameworkTests.cs
@@ -1,304 +1,303 @@
-// Copyright 2005-2008 Gallio Project - http://www.gallio.org/
-// Portions Copyright 2000-2004 Jonathan De Halleux, Jamie Cansdale
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
-// Modified by and Portions Copyright 2008 Machine Project
-
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using Gallio.Common.Reflection;
-using Gallio.Framework;
-using Gallio.Model;
-using Gallio.Model.Isolation;
-using Gallio.Model.Messages;
-using Gallio.Model.Tree;
-using Gallio.Runtime;
-using Gallio.Runtime.Extensibility;
-using Gallio.Runtime.Logging;
-using Gallio.Runtime.ProgressMonitoring;
-using Machine.Specifications.GallioAdapter.Model;
-using Machine.Specifications.GallioAdapter.TestResources;
-using NUnit.Framework;
-using Test = Gallio.Model.Tree.Test;
-
-namespace Machine.Specifications.GallioAdapter.Tests
-{
- // Adapted from the Gallio BaseTestFrameworkTest<TSimpleTest> Test
- [TestFixture]
- public class FrameworkTests
- {
- const string ParentTestName = "simple test spec";
- const string PassTestName = "pass";
- const string FailTestName = "fail";
- readonly string AssemblyKind = TestKinds.Assembly;
- readonly Assembly SimpleFixtureAssembly = typeof(simple_test_spec).Assembly;
- readonly Type SimpleFixtureType = typeof(simple_test_spec);
- readonly string SimpleFixtureNamespace = typeof(simple_test_spec).Namespace;
-
- void AssertStringContains(string needle, string haystack)
- {
- // HACK: needed a quick string comparison that was not case sensitive
- StringAssert.Contains(needle.ToUpper(), haystack.ToUpper());
- }
-
- #region Members from the original Gallio class BaseTestFrameworkTest<TSimpleTest>
- ComponentHandle<ITestFramework, TestFrameworkTraits> TestFrameworkHandle
- {
- get
- {
- return (ComponentHandle<ITestFramework, TestFrameworkTraits>)
- RuntimeAccessor.ServiceLocator.ResolveHandleByComponentId("Machine.Specifications");
- }
- }
-
- TestModel PopulateTestTree()
- {
- return PopulateTestTree(SimpleFixtureAssembly);
- }
-
- TestModel PopulateTestTree(Assembly assembly)
- {
- TestModel testModel = new TestModel();
-
- var testFrameworkManager = RuntimeAccessor.ServiceLocator.Resolve<ITestFrameworkManager>();
- var logger = new MarkupStreamLogger(TestLog.Default);
-
- var testFrameworkSelector = new TestFrameworkSelector()
- {
- Filter = testFrameworkHandle => testFrameworkHandle.Id == TestFrameworkHandle.Id,
- FallbackMode = TestFrameworkFallbackMode.Strict
- };
-
- ITestDriver testDriver = testFrameworkManager.GetTestDriver(testFrameworkSelector, logger);
-
- var testIsolationProvider = (ITestIsolationProvider)RuntimeAccessor.ServiceLocator.ResolveByComponentId("Gallio.LocalTestIsolationProvider");
- var testIsolationOptions = new TestIsolationOptions();
- using (ITestIsolationContext testIsolationContext = testIsolationProvider.CreateContext(testIsolationOptions, logger))
- {
- var testPackage = new TestPackage();
- testPackage.AddFile(new FileInfo(AssemblyUtils.GetFriendlyAssemblyCodeBase(assembly)));
- var testExplorationOptions = new TestExplorationOptions();
-
- var messageSink = TestModelSerializer.CreateMessageSinkToPopulateTestModel(testModel);
-
- new LogProgressMonitorProvider(logger).Run(progressMonitor =>
- {
- testDriver.Explore(testIsolationContext, testPackage, testExplorationOptions,
- messageSink, progressMonitor);
- });
- }
-
- return testModel;
- }
-
- Test GetDescendantByName(Test parent, string name)
- {
- foreach (Test test in parent.Children)
- {
- if (test.Name == name)
- return test;
-
- Test descendant = GetDescendantByName(test, name);
- if (descendant != null)
- return descendant;
- }
-
- return null;
- }
- #endregion
-
- [Test]
- public void PopulateTreeTest_IgnoredContextShouldIncludeExtraMetadata()
- {
- TestModel testModel = PopulateTestTree();
-
- Test test = GetDescendantByName(testModel.RootTest.Children[0], "ignored context spec");
-
- Assert.IsNotNull(test);
- AssertStringContains("Attribute", test.Metadata.GetValue(MetadataKeys.IgnoreReason));
- }
-
- [Test]
- public void PopulateTreeTest_IgnoredSpecificationShouldIncludeExtraMetadata()
- {
- TestModel testModel = PopulateTestTree();
-
- Test context = GetDescendantByName(testModel.RootTest.Children[0], "ignored specification spec");
- Assert.IsNotNull(context);
-
- Test spec = GetDescendantByName(context, "should");
- Assert.IsNotNull(spec);
-
- StringAssert.DoesNotContain("Attribute", context.Metadata.GetValue(MetadataKeys.IgnoreReason));
- AssertStringContains("Attribute", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
- }
-
- [Test]
- public void PopulateTreeTest_IgnoredSpecificationDueToIgnoredContextShouldIndicateIgnoredDueToParent()
- {
- TestModel testModel = PopulateTestTree();
-
- Test context = GetDescendantByName(testModel.RootTest.Children[0], "ignored context spec");
- Assert.IsNotNull(context);
-
- Test spec = GetDescendantByName(context, "should");
- Assert.IsNotNull(spec);
-
- AssertStringContains("Attribute", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
- AssertStringContains("Context", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
- }
-
- [Test]
- public void PopulateTreeTest_SubjectShouldBeSavedAsTheCategory()
- {
- TestModel testModel = PopulateTestTree();
-
- Test test = GetDescendantByName(testModel.RootTest.Children[0], "subject spec");
-
- Assert.IsNotNull(test);
-
- string category = test.Metadata.GetValue(MetadataKeys.Category);
-
- AssertStringContains("Testing out the framework", category); // Make sure the text is there
- AssertStringContains("bool", category); // Make sure the type is there too
- }
-
- [Test]
- public void PopulateTreeTest_TagShouldAddExtraMetaData()
- {
- TestModel testModel = PopulateTestTree();
-
- Test test = GetDescendantByName(testModel.RootTest.Children[0], "tag spec");
-
- Assert.IsNotNull(test);
-
- IList<string> tags = test.Metadata[SpecificationMetadataKeys.Tags];
-
- tags.Contains("tag").ShouldBeTrue();
- }
-
- [Test]
- public void PopulateTreeTest_MultipleTagsShouldContainIndividualEntries()
- {
- TestModel testModel = PopulateTestTree();
-
- Test test = GetDescendantByName(testModel.RootTest.Children[0], "multiple tag spec");
-
- Assert.IsNotNull(test);
-
- IList<string> tags = test.Metadata[SpecificationMetadataKeys.Tags];
-
- tags.Contains("one").ShouldBeTrue();
- tags.Contains("two").ShouldBeTrue();
- tags.Contains("three").ShouldBeTrue();
- }
-
- // These tests are borrowed directly from the Gallio MS Test adapter tests
-
- [Test]
- public void PopulateTestTree_WhenAssemblyDoesNotReferenceFramework_IsEmpty()
- {
- TestModel testModel = PopulateTestTree(typeof(int).Assembly);
-
- Assert.AreEqual(0, testModel.RootTest.Children.Count);
- }
-
- [Test]
- public void PopulateTestTree_CapturesTestStructureAndBasicMetadata()
- {
- TestModel testModel = PopulateTestTree();
-
- Test rootTest = testModel.RootTest;
- Assert.IsNull(rootTest.Parent);
- Assert.AreEqual(TestKinds.Root, rootTest.Kind);
- Assert.IsNull(rootTest.CodeElement);
- Assert.IsFalse(rootTest.IsTestCase);
- Assert.AreEqual(1, rootTest.Children.Count);
-
- Test assemblyTest = rootTest.Children[0];
- Assert.AreSame(rootTest, assemblyTest.Parent);
- Assert.AreEqual(AssemblyKind, assemblyTest.Kind);
- AssertStringContains(SimpleFixtureAssembly.Location, assemblyTest.Metadata.GetValue(MetadataKeys.File));
- Assert.AreEqual(CodeReference.CreateFromAssembly(SimpleFixtureAssembly), assemblyTest.CodeElement.CodeReference);
- Assert.AreEqual(SimpleFixtureAssembly.GetName().Name, assemblyTest.Name);
- Assert.IsFalse(assemblyTest.IsTestCase);
- Assert.GreaterOrEqual(assemblyTest.Children.Count, 1);
-
- Test fixtureTest = GetDescendantByName(assemblyTest, ParentTestName);
- Assert.AreEqual(TestKinds.Fixture, fixtureTest.Kind);
- Assert.AreEqual(new CodeReference(SimpleFixtureAssembly.FullName, SimpleFixtureNamespace, SimpleFixtureNamespace + ".simple_test_spec", null, null),
- fixtureTest.CodeElement.CodeReference);
- Assert.AreEqual(ParentTestName, fixtureTest.Name);
- Assert.IsFalse(fixtureTest.IsTestCase);
- Assert.AreEqual(2, fixtureTest.Children.Count);
-
- Test passTest = GetDescendantByName(fixtureTest, PassTestName);
- Test failTest = GetDescendantByName(fixtureTest, FailTestName);
-
- Assert.IsNotNull(passTest, "Cannot find test case '{0}'", PassTestName);
- Assert.IsNotNull(failTest, "Cannot find test case '{0}'", FailTestName);
-
- Assert.AreSame(fixtureTest, passTest.Parent);
- Assert.AreEqual(TestKinds.Test, passTest.Kind);
- Assert.AreEqual(new CodeReference(SimpleFixtureAssembly.FullName, SimpleFixtureNamespace, SimpleFixtureNamespace + ".simple_test_spec", PassTestName, null),
- passTest.CodeElement.CodeReference);
- Assert.AreEqual(PassTestName, passTest.Name);
- Assert.IsTrue(passTest.IsTestCase);
- Assert.AreEqual(0, passTest.Children.Count);
-
- Assert.AreSame(fixtureTest, failTest.Parent);
- Assert.AreEqual(TestKinds.Test, failTest.Kind);
- Assert.AreEqual(new CodeReference(SimpleFixtureAssembly.FullName, SimpleFixtureNamespace, SimpleFixtureNamespace + ".simple_test_spec", FailTestName, null),
- failTest.CodeElement.CodeReference);
- Assert.AreEqual(FailTestName, failTest.Name);
- Assert.IsTrue(failTest.IsTestCase);
- Assert.AreEqual(0, failTest.Children.Count);
- }
-
- [Test]
- public void MetadataImport_XmlDocumentation()
- {
- TestModel testModel = PopulateTestTree();
-
- Test test = GetDescendantByName(testModel.RootTest, ParentTestName);
- Test passTest = GetDescendantByName(test, PassTestName);
- Test failTest = GetDescendantByName(test, FailTestName);
-
- Assert.AreEqual("<summary>\nA simple test specification.\n</summary>", test.Metadata.GetValue(MetadataKeys.XmlDocumentation));
- Assert.AreEqual("<summary>\nA passing specification.\n</summary>", passTest.Metadata.GetValue(MetadataKeys.XmlDocumentation));
- Assert.AreEqual("<summary>\nA failing specification.\n</summary>", failTest.Metadata.GetValue(MetadataKeys.XmlDocumentation));
- }
-
- [Test]
- public void MetadataImport_AssemblyAttributes()
- {
- TestModel testModel = PopulateTestTree();
-
- Test assemblyTest = testModel.RootTest.Children[0];
-
- Assert.AreEqual("Machine Project", assemblyTest.Metadata.GetValue(MetadataKeys.Company));
- Assert.AreEqual("Test", assemblyTest.Metadata.GetValue(MetadataKeys.Configuration));
- AssertStringContains("Copyright © Machine Project 2008, 2009, 2010", assemblyTest.Metadata.GetValue(MetadataKeys.Copyright));
- Assert.AreEqual("Machine.Specifications.Adapter.TestResources Description", assemblyTest.Metadata.GetValue(MetadataKeys.Description));
- Assert.AreEqual("Machine.Specifications", assemblyTest.Metadata.GetValue(MetadataKeys.Product));
- Assert.AreEqual("Machine.Specifications.Adapter.TestResources", assemblyTest.Metadata.GetValue(MetadataKeys.Title));
-
- Assert.IsNotEmpty(assemblyTest.Metadata.GetValue(MetadataKeys.InformationalVersion));
- Assert.IsNotEmpty(assemblyTest.Metadata.GetValue(MetadataKeys.FileVersion));
- Assert.IsNotEmpty(assemblyTest.Metadata.GetValue(MetadataKeys.Version));
- }
- }
-}
+// Copyright 2005-2008 Gallio Project - http://www.gallio.org/
+// Portions Copyright 2000-2004 Jonathan De Halleux, Jamie Cansdale
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+// Modified by and Portions Copyright 2008 Machine Project
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Reflection;
+using Gallio.Common.Reflection;
+using Gallio.Framework;
+using Gallio.Model;
+using Gallio.Model.Isolation;
+using Gallio.Model.Messages;
+using Gallio.Model.Tree;
+using Gallio.Runtime;
+using Gallio.Runtime.Extensibility;
+using Gallio.Runtime.Logging;
+using Gallio.Runtime.ProgressMonitoring;
+using Machine.Specifications.GallioAdapter.Model;
+using Machine.Specifications.GallioAdapter.TestResources;
+using NUnit.Framework;
+using Test = Gallio.Model.Tree.Test;
+
+namespace Machine.Specifications.GallioAdapter.Tests
+{
+ // Adapted from the Gallio BaseTestFrameworkTest<TSimpleTest> Test
+ [TestFixture]
+ public class FrameworkTests
+ {
+ const string ParentTestName = "simple test spec";
+ const string PassTestName = "pass";
+ const string FailTestName = "fail";
+ readonly string AssemblyKind = TestKinds.Assembly;
+ readonly Assembly SimpleFixtureAssembly = typeof(simple_test_spec).Assembly;
+ readonly Type SimpleFixtureType = typeof(simple_test_spec);
+ readonly string SimpleFixtureNamespace = typeof(simple_test_spec).Namespace;
+
+ void AssertStringContains(string needle, string haystack)
+ {
+ // HACK: needed a quick string comparison that was not case sensitive
+ StringAssert.Contains(needle.ToUpper(), haystack.ToUpper());
+ }
+
+ #region Members from the original Gallio class BaseTestFrameworkTest<TSimpleTest>
+ ComponentHandle<ITestFramework, TestFrameworkTraits> TestFrameworkHandle
+ {
+ get
+ {
+ return (ComponentHandle<ITestFramework, TestFrameworkTraits>)
+ RuntimeAccessor.ServiceLocator.ResolveHandleByComponentId("Machine.Specifications");
+ }
+ }
+
+ TestModel PopulateTestTree()
+ {
+ return PopulateTestTree(SimpleFixtureAssembly);
+ }
+
+ TestModel PopulateTestTree(Assembly assembly)
+ {
+ TestModel testModel = new TestModel();
+
+ var testFrameworkManager = RuntimeAccessor.ServiceLocator.Resolve<ITestFrameworkManager>();
+ var logger = new MarkupStreamLogger(TestLog.Default);
+
+ var testFrameworkSelector = new TestFrameworkSelector()
+ {
+ Filter = testFrameworkHandle => testFrameworkHandle.Id == TestFrameworkHandle.Id,
+ FallbackMode = TestFrameworkFallbackMode.Strict
+ };
+
+ ITestDriver testDriver = testFrameworkManager.GetTestDriver(testFrameworkSelector, logger);
+
+ var testIsolationProvider = (ITestIsolationProvider)RuntimeAccessor.ServiceLocator.ResolveByComponentId("Gallio.LocalTestIsolationProvider");
+ var testIsolationOptions = new TestIsolationOptions();
+ using (ITestIsolationContext testIsolationContext = testIsolationProvider.CreateContext(testIsolationOptions, logger))
+ {
+ var testPackage = new TestPackage();
+ testPackage.AddFile(new FileInfo(AssemblyUtils.GetFriendlyAssemblyCodeBase(assembly)));
+ var testExplorationOptions = new TestExplorationOptions();
+
+ var messageSink = TestModelSerializer.CreateMessageSinkToPopulateTestModel(testModel);
+
+ new LogProgressMonitorProvider(logger).Run(progressMonitor =>
+ {
+ testDriver.Explore(testIsolationContext, testPackage, testExplorationOptions,
+ messageSink, progressMonitor);
+ });
+ }
+
+ return testModel;
+ }
+
+ Test GetDescendantByName(Test parent, string name)
+ {
+ foreach (Test test in parent.Children)
+ {
+ if (test.Name == name)
+ return test;
+
+ Test descendant = GetDescendantByName(test, name);
+ if (descendant != null)
+ return descendant;
+ }
+
+ return null;
+ }
+ #endregion
+
+ [Test]
+ public void PopulateTreeTest_IgnoredContextShouldIncludeExtraMetadata()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test test = GetDescendantByName(testModel.RootTest.Children[0], "ignored context spec");
+
+ Assert.IsNotNull(test);
+ AssertStringContains("Attribute", test.Metadata.GetValue(MetadataKeys.IgnoreReason));
+ }
+
+ [Test]
+ public void PopulateTreeTest_IgnoredSpecificationShouldIncludeExtraMetadata()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test context = GetDescendantByName(testModel.RootTest.Children[0], "ignored specification spec");
+ Assert.IsNotNull(context);
+
+ Test spec = GetDescendantByName(context, "should");
+ Assert.IsNotNull(spec);
+
+ StringAssert.DoesNotContain("Attribute", context.Metadata.GetValue(MetadataKeys.IgnoreReason));
+ AssertStringContains("Attribute", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
+ }
+
+ [Test]
+ public void PopulateTreeTest_IgnoredSpecificationDueToIgnoredContextShouldIndicateIgnoredDueToParent()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test context = GetDescendantByName(testModel.RootTest.Children[0], "ignored context spec");
+ Assert.IsNotNull(context);
+
+ Test spec = GetDescendantByName(context, "should");
+ Assert.IsNotNull(spec);
+
+ AssertStringContains("Attribute", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
+ AssertStringContains("Context", spec.Metadata.GetValue(MetadataKeys.IgnoreReason));
+ }
+
+ [Test]
+ public void PopulateTreeTest_SubjectShouldBeSavedAsTheCategory()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test test = GetDescendantByName(testModel.RootTest.Children[0], "subject spec");
+
+ Assert.IsNotNull(test);
+
+ string category = test.Metadata.GetValue(MetadataKeys.Category);
+
+ AssertStringContains("Testing out the framework", category); // Make sure the text is there
+ AssertStringContains("bool", category); // Make sure the type is there too
+ }
+
+ [Test]
+ public void PopulateTreeTest_TagShouldAddExtraMetaData()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test test = GetDescendantByName(testModel.RootTest.Children[0], "tag spec");
+
+ Assert.IsNotNull(test);
+
+ IList<string> tags = test.Metadata[SpecificationMetadataKeys.Tags];
+
+ tags.Contains("tag").ShouldBeTrue();
+ }
+
+ [Test]
+ public void PopulateTreeTest_MultipleTagsShouldContainIndividualEntries()
+ {
+ TestModel testModel = PopulateTestTree();
+
+ Test test = GetDescendantByName(testModel.RootTest.Children[0], "multiple tag spec");
+
+ Assert.IsNotNull(test);
+