diff --git a/Octokit.Tests.Conventions/Octokit.Tests.Conventions.csproj b/Octokit.Tests.Conventions/Octokit.Tests.Conventions.csproj new file mode 100644 index 00000000..e0f096f5 --- /dev/null +++ b/Octokit.Tests.Conventions/Octokit.Tests.Conventions.csproj @@ -0,0 +1,79 @@ + + + + + Debug + AnyCPU + {5345E2E6-4E7C-40F8-831B-E491F6051D3C} + Library + Properties + Octokit.Tests.Conventions + Octokit.Tests.Conventions + v4.5 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + False + ..\packages\Rx-Core.2.1.30214.0\lib\Net45\System.Reactive.Core.dll + + + False + ..\packages\Rx-Interfaces.2.1.30214.0\lib\Net45\System.Reactive.Interfaces.dll + + + ..\packages\xunit.1.9.2\lib\net20\xunit.dll + + + ..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll + + + + + + + + + + + + {674b69b8-0780-4d54-ae2b-c15821fa51cb} + Octokit.Reactive + + + {08dd4305-7787-4823-a53f-4d0f725a07f3} + Octokit + + + + + + + + \ No newline at end of file diff --git a/Octokit.Tests.Conventions/Properties/AssemblyInfo.cs b/Octokit.Tests.Conventions/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..da2071ab --- /dev/null +++ b/Octokit.Tests.Conventions/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("Octokit.Tests.Conventions")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Octokit.Tests.Conventions")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyTrademark("")] +[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("12127138-325b-4d55-a4f9-a3f915582e6f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Octokit.Tests/Reactive/SyncObservableClients.cs b/Octokit.Tests.Conventions/SyncObservableClients.cs similarity index 98% rename from Octokit.Tests/Reactive/SyncObservableClients.cs rename to Octokit.Tests.Conventions/SyncObservableClients.cs index 726ff0da..d29cdf86 100644 --- a/Octokit.Tests/Reactive/SyncObservableClients.cs +++ b/Octokit.Tests.Conventions/SyncObservableClients.cs @@ -8,9 +8,8 @@ using Octokit.Reactive; using Xunit; using Xunit.Extensions; -namespace Octokit.Tests.Reactive +namespace Octokit.Tests.Conventions { - [Trait("Category", "CheckClients")] public class SyncObservableClients { public static IEnumerable ClientInterfaces @@ -22,7 +21,7 @@ namespace Octokit.Tests.Reactive } [Fact] - private void CheckClient() + private void CheckClientExample() { CheckClientInterfaces(typeof(IAssigneesClient)); } diff --git a/Octokit.Tests.Conventions/packages.config b/Octokit.Tests.Conventions/packages.config new file mode 100644 index 00000000..f4f103e1 --- /dev/null +++ b/Octokit.Tests.Conventions/packages.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Octokit.Tests/Octokit.Tests.csproj b/Octokit.Tests/Octokit.Tests.csproj index 4a4e97bb..6ad0f6c0 100644 --- a/Octokit.Tests/Octokit.Tests.csproj +++ b/Octokit.Tests/Octokit.Tests.csproj @@ -135,7 +135,6 @@ - diff --git a/Octokit.sln b/Octokit.sln index e40f417c..833a04b1 100644 --- a/Octokit.sln +++ b/Octokit.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30110.0 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit", "Octokit\Octokit.csproj", "{08DD4305-7787-4823-A53F-4D0F725A07F3}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests", "Octokit.Tests\Octokit.Tests.csproj", "{149448D4-C2F2-4DF9-86BD-03E3272F093B}" @@ -37,6 +39,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "clean-up-after-tests", "cle EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit-Mono", "Octokit\Octokit-Mono.csproj", "{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests.Conventions", "Octokit.Tests.Conventions\Octokit.Tests.Conventions.csproj", "{5345E2E6-4E7C-40F8-831B-E491F6051D3C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -75,6 +79,10 @@ Global {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Debug|Any CPU.Build.0 = Debug|Any CPU {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Release|Any CPU.ActiveCfg = Release|Any CPU {49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Release|Any CPU.Build.0 = Release|Any CPU + {5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/build.fsx b/build.fsx index c666fde1..a1af31d2 100644 --- a/build.fsx +++ b/build.fsx @@ -62,6 +62,14 @@ Target "BuildApp" (fun _ -> |> Log "AppBuild-Output: " ) +Target "ConventionsTests" (fun _ -> + !! (sprintf "./Octokit.Tests.Conventions/bin/%s/**/Octokit.Tests.Conventions.dll" buildMode) + |> xUnit (fun p -> + {p with + XmlOutput = true + OutputDir = testResultsDir }) +) + Target "UnitTests" (fun _ -> !! (sprintf "./Octokit.Tests/bin/%s/**/Octokit.Tests*.dll" buildMode) |> xUnit (fun p -> diff --git a/packages/repositories.config b/packages/repositories.config index 7d836289..9c2ee0ad 100644 --- a/packages/repositories.config +++ b/packages/repositories.config @@ -1,6 +1,7 @@  +