Assembla home | Assembla project page
 

Changeset 268

Show
Ignore:
Timestamp:
09/02/08 16:32:26 (3 months ago)
Author:
olson.jeffery
Message:

added a test to AssemblyExplorerTests? to verify that FindAssemblyContextsIn?() can fetch types that implement IAssemblyContext from an assembly. Added an AssemblyContext? implementation class to go along with that

Signed-off-by: Jeffery Olson <olson.jeffery@gmail.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/Specifications/Machine.Specifications.Tests/Explorers/AssemblyExplorerTests.cs

    r157 r268  
    148148    } 
    149149  } 
     150 
     151  [TestFixture] 
     152  public class AssemblyExplorer_FindAssemblyContextsIn_WithinAnAssembly : TestsFor<AssemblyExplorer> 
     153  { 
     154    private List<IAssemblyContext> assemblyContexts; 
     155 
     156    public override void BeforeEachTest() 
     157    { 
     158      var assembly = Assembly.GetExecutingAssembly(); 
     159      assemblyContexts = new List<IAssemblyContext>(Target.FindAssemblyContextsIn(assembly)); 
     160    } 
     161 
     162    [Test] 
     163    public void ShouldHaveOneAssemblyContext() 
     164    { 
     165      assemblyContexts.Count.ShouldEqual(1); 
     166    } 
     167 
     168  } 
    150169} 
  • trunk/Source/Specifications/Machine.Specifications.Tests/Machine.Specifications.Tests.csproj

    r158 r268  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    6     <ProductVersion>9.0.21022</ProductVersion> 
     6    <ProductVersion>9.0.30729</ProductVersion> 
    77    <SchemaVersion>2.0</SchemaVersion> 
    88    <ProjectGuid>{FE10826D-F2C7-4FF3-A135-9EA9EF2C9CB4}</ProjectGuid> 
     
    5555  </ItemGroup> 
    5656  <ItemGroup> 
     57    <Compile Include="AssemblyContext.cs" /> 
    5758    <Compile Include="ExampleSpecifications.cs" /> 
    5859    <Compile Include="Explorers\AssemblyExplorerTests.cs" />