Skip to content

Commit

Permalink
Remove Fakes usage
Browse files Browse the repository at this point in the history
  • Loading branch information
mikefourie committed Jul 23, 2017
1 parent 306b23a commit 4c3349e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 33 deletions.
Binary file not shown.
Binary file not shown.
Expand Up @@ -41,14 +41,7 @@
<ItemGroup>
<Reference Include="Microsoft.Build.Framework" />
<Reference Include="Microsoft.Build.Utilities.v4.0" />
<Reference Include="Microsoft.QualityTools.Testing.Fakes" />
<Reference Include="mscorlib.4.0.0.0.Fakes">
<HintPath>FakesAssemblies\mscorlib.4.0.0.0.Fakes.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.4.0.0.0.Fakes">
<HintPath>FakesAssemblies\System.4.0.0.0.Fakes.dll</HintPath>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
Expand Down Expand Up @@ -92,12 +85,6 @@
<Name>Framework %28Tasks\Framework%29</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Fakes Include="Fakes\System.fakes" />
</ItemGroup>
<ItemGroup>
<Fakes Include="Fakes\mscorlib.fakes" />
</ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
Expand Down
20 changes: 0 additions & 20 deletions Solutions/Main/UnitTests/FrameworkUnitTests/PathTest.cs
Expand Up @@ -3,7 +3,6 @@
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------
namespace MSBuild.ExtensionPack.Framework.Tests
{
using Microsoft.QualityTools.Testing.Fakes;
using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
Expand Down Expand Up @@ -200,25 +199,6 @@ public void Path_GetTempPath()
Assert.IsTrue(target.Value == System.IO.Path.GetTempPath());
}

[TestMethod]
public void Path_GetRandomFileName()
{
// arrange
MSBuild.ExtensionPack.Framework.Path target = new MSBuild.ExtensionPack.Framework.Path();
target.BuildEngine = new MockBuildEngine();
target.TaskAction = "GetRandomFileName";
using (ShimsContext.Create())
{
System.IO.Fakes.ShimPath.GetRandomFileName = () => "abc.sds";

// act
target.Execute();

// assert
Assert.AreEqual(target.Value, "abc.sds");
}
}

[TestMethod]
public void Path_Combine()
{
Expand Down

0 comments on commit 4c3349e

Please sign in to comment.