Skip to content

Commit

Permalink
Added TF2Value struct tests by BlueRaja
Browse files Browse the repository at this point in the history
  • Loading branch information
WildCard65 committed Feb 22, 2015
1 parent b392771 commit 2f7d7d8
Show file tree
Hide file tree
Showing 6 changed files with 561 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .nuget/packages.config
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit.Runners" version="2.6.4" />
</packages>
42 changes: 42 additions & 0 deletions SteamBotUnitTest.sln
Expand Up @@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{C8129C
.nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamBotUnitTest", "SteamBotUnitTest\SteamBotUnitTest.csproj", "{DD770440-43F0-4440-BD36-DD91A0EB6842}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
CoreOnly|Any CPU = CoreOnly|Any CPU
Expand Down Expand Up @@ -126,6 +128,46 @@ Global
{6CEC0333-81EB-40EE-85D1-941363626FC7}.Unity|Any CPU.Build.0 = Debug|Any CPU
{6CEC0333-81EB-40EE-85D1-941363626FC7}.Unity|Mixed Platforms.ActiveCfg = Release|Any CPU
{6CEC0333-81EB-40EE-85D1-941363626FC7}.Unity|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.CoreOnly|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.CoreOnly|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.CoreOnly|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.CoreOnly|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.CoreOnly|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Debug|x86.ActiveCfg = Debug|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.iOS|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.iOS|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.iOS|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.iOS|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.iOS|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Net20|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Net20|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Net20|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Net20|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Net20|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Profile|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Profile|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Profile|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Profile|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Profile|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Release|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Release|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Silverlight2|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Silverlight2|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Silverlight2|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Silverlight2|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Silverlight2|x86.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Unity|Any CPU.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Unity|Any CPU.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Unity|Mixed Platforms.ActiveCfg = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Unity|Mixed Platforms.Build.0 = Release|Any CPU
{DD770440-43F0-4440-BD36-DD91A0EB6842}.Unity|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
36 changes: 36 additions & 0 deletions SteamBotUnitTest/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("SteamBotUnitTest")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SteamBotUnitTest")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[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("54039ab1-e82a-4d9f-93f2-1a96e42ec6de")]

// 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")]
80 changes: 80 additions & 0 deletions SteamBotUnitTest/SteamBotUnitTest.csproj
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DD770440-43F0-4440-BD36-DD91A0EB6842}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>SteamBotUnitTest</RootNamespace>
<AssemblyName>SteamBotUnitTest</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<RestorePackages>true</RestorePackages>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SteamTrade\Tf2ValueTests.cs" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<ProjectReference Include="..\SteamBot\ExampleBot.csproj">
<Project>{e81ded36-edf5-41a5-8666-a3a0c581762f}</Project>
<Name>ExampleBot</Name>
</ProjectReference>
<ProjectReference Include="..\SteamTrade\SteamTrade.csproj">
<Project>{6cec0333-81eb-40ee-85d1-941363626fc7}</Project>
<Name>SteamTrade</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

0 comments on commit 2f7d7d8

Please sign in to comment.