Permalink
Browse files

added license

  • Loading branch information...
1 parent 5965924 commit 928f24b9ce479833c5f5e88791d34d2a4a2a7fc1 @gregoryyoung committed Dec 6, 2010
Showing 390 changed files with 431 additions and 298 deletions.
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Greg Young gregoryyoung1@gmail.com
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
0 README 100644 → 100755
No changes.
View
0 grensesnitt.AddIn/AssemblyInfo.cs 100644 → 100755
No changes.
View
No changes.
View
No changes.
View
No changes.
View
@@ -16,12 +16,12 @@ public class InterfaceSuiteBuilder : TestSuite
public InterfaceSuiteBuilder(Type fixtureType)
: base(fixtureType)
{
- IEnumerable<Type> types = GetInterfaceTypes(fixtureType);
+ var types = GetInterfaceTypes(fixtureType);
foreach (Type t in types)
{
IEnumerable<Type> matchingTypes = TypeFinder.GetTypesMatchingInterface(t.GetGenericArguments()[0]);
- NUnit.Core.TestSuite current = null;
+ TestSuite current = null;
foreach (Type toTest in matchingTypes) {
current = new NUnit.Core.TestSuite(this.TestName.Name,toTest.Name);
foreach (
View
0 grensesnitt.AddIn/SearchPaths.cs 100644 → 100755
No changes.
View
No changes.
View
0 grensesnitt.AddIn/TypeFinder.cs 100644 → 100755
No changes.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
No changes.
No changes.
View
No changes.
View
@@ -1,65 +1,70 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{982BB349-C3E7-443F-BC0E-EB71AC38A438}</ProjectGuid>
- <OutputType>Library</OutputType>
- <RootNamespace>grensesnitt.AddIn</RootNamespace>
- <AssemblyName>grensesnitt.AddIn</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\framework\nunit.framework.dll</HintPath>
- </Reference>
- <Reference Include="nunit.core, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\lib\nunit.core.dll</HintPath>
- </Reference>
- <Reference Include="nunit.core.interfaces, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\lib\nunit.core.interfaces.dll</HintPath>
- </Reference>
- <Reference Include="System.Core" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="InterfaceSuiteBuilder.cs" />
- <Compile Include="TestNameBuilder.cs" />
- <Compile Include="InstanceTestMethod.cs" />
- <Compile Include="SearchPaths.cs" />
- <Compile Include="AssemblyLoader.cs" />
- <Compile Include="TypeFinder.cs" />
- <Compile Include="GrensesnittAddin.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ItemGroup>
- <ProjectReference Include="..\grensesnitt.Framework\grensesnitt.Framework.csproj">
- <Project>{7C3378AC-DF04-48B1-95F6-15BCB052BF1A}</Project>
- <Name>grensesnitt.Framework</Name>
- </ProjectReference>
- </ItemGroup>
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{982BB349-C3E7-443F-BC0E-EB71AC38A438}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>grensesnitt.AddIn</RootNamespace>
+ <AssemblyName>grensesnitt.AddIn</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="nunit.framework, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\framework\nunit.framework.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.core, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\lib\nunit.core.dll</HintPath>
+ </Reference>
+ <Reference Include="nunit.core.interfaces, Version=2.5.7.10213, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>..\lib\NUnit-2.5.7.10213\bin\net-2.0\lib\nunit.core.interfaces.dll</HintPath>
+ </Reference>
+ <Reference Include="System.Core" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.cs" />
+ <Compile Include="InterfaceSuiteBuilder.cs" />
+ <Compile Include="TestNameBuilder.cs" />
+ <Compile Include="InstanceTestMethod.cs" />
+ <Compile Include="SearchPaths.cs" />
+ <Compile Include="AssemblyLoader.cs" />
+ <Compile Include="TypeFinder.cs" />
+ <Compile Include="GrensesnittAddin.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <ProjectReference Include="..\grensesnitt.Framework\grensesnitt.Framework.csproj">
+ <Project>{7C3378AC-DF04-48B1-95F6-15BCB052BF1A}</Project>
+ <Name>grensesnitt.Framework</Name>
+ </ProjectReference>
+ </ItemGroup>
</Project>
View
Binary file not shown.
View
No changes.
View
No changes.
View
No changes.
View
No changes.
View
@@ -10,7 +10,7 @@ public static class GrensesnittObjectLocator
private static Dictionary<Type, Func<object>> map = new Dictionary<Type, Func<object>>();
public static object GetInstance(Type t) {
- return GetHandler(t)();
+ return GetHandler(t)();
}
public static void HookAllTo(Func<Type, object> handler) {
View
No changes.
No changes.
No changes.
Binary file not shown.
Binary file not shown.
View
@@ -1,45 +1,50 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.21022</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{7C3378AC-DF04-48B1-95F6-15BCB052BF1A}</ProjectGuid>
- <OutputType>Library</OutputType>
- <RootNamespace>grensesnitt.Framework</RootNamespace>
- <AssemblyName>grensesnitt.Framework</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug</OutputPath>
- <DefineConstants>DEBUG</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>none</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Release</OutputPath>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- <ConsolePause>false</ConsolePause>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="AssemblyInfo.cs" />
- <Compile Include="InterfaceSpecificationAttribute.cs" />
- <Compile Include="AppliesToAll.cs" />
- <Compile Include="AppliesTo.cs" />
- <Compile Include="GrensesnittObjectLocator.cs" />
- <Compile Include="GrensesnittSearchLocation.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{7C3378AC-DF04-48B1-95F6-15BCB052BF1A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>grensesnitt.Framework</RootNamespace>
+ <AssemblyName>grensesnitt.Framework</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileUpgradeFlags>
+ </FileUpgradeFlags>
+ <UpgradeBackupLocation>
+ </UpgradeBackupLocation>
+ <OldToolsVersion>3.5</OldToolsVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="AssemblyInfo.cs" />
+ <Compile Include="InterfaceSpecificationAttribute.cs" />
+ <Compile Include="AppliesToAll.cs" />
+ <Compile Include="AppliesTo.cs" />
+ <Compile Include="GrensesnittObjectLocator.cs" />
+ <Compile Include="GrensesnittSearchLocation.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
View
Binary file not shown.
View
No changes.
@@ -5,8 +5,8 @@ namespace grensesnitt.Sample.SimpleKeyValue
{
public class DictionarySimpleKeyValue : ISimpleKeyValue {
private Dictionary<string, object> dictionary = new Dictionary<string, object>();
-
- public void Insert(string key, object val){
+
+ public void Insert(string key, object val){
if(val == null) throw new ArgumentNullException();
dictionary.Add(key, val);
}
@@ -17,7 +17,7 @@ public class DictionarySimpleKeyValue : ISimpleKeyValue {
dictionary.Remove(key);
}
public int Count {
- get { return dictionary.Count; }
+ get { return dictionary.Count; }
}
}
}
No changes.
@@ -1,27 +1,30 @@
-using System;
-using System.Collections.Generic;
-
-namespace grensesnitt.Sample.SimpleKeyValue
-{
- public interface shitbird : ISimpleKeyValue {} //supports inheritance etc
-
- public class ListSimpleKeyValue : shitbird
- {
- private SortedList<string, object> list = new SortedList<string, object>();
-
- public void Insert(string key, object val){
- if (val == null) throw new ArgumentNullException("val");
- list.Add(key, val);
- }
- public object GetByKey(string key) {
- return list[key];
- }
- public void Remove(string key) {
- list.Remove(key);
- }
-
- public int Count {
- get { return list.Count; }
- }
- }
-}
+using System;
+using System.Collections.Generic;
+
+namespace grensesnitt.Sample.SimpleKeyValue
+{
+ public interface shitbird : ISimpleKeyValue {} //supports inheritance etc
+
+ public class ListSimpleKeyValue : shitbird
+ {
+ private SortedList<string, object> list = new SortedList<string, object>();
+ public void Foo()
+ {
+
+ }
+ public void Insert(string key, object val){
+ if (val == null) throw new ArgumentNullException("val");
+ list.Add(key, val);
+ }
+ public object GetByKey(string key) {
+ return list[key];
+ }
+ public void Remove(string key) {
+ list.Remove(key);
+ }
+
+ public int Count {
+ get { return list.Count; }
+ }
+ }
+}
No changes.
Oops, something went wrong.

0 comments on commit 928f24b

Please sign in to comment.