mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-04-08 00:09:47 +00:00
Update e2e test infrastructure
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
|
||||
namespace test_csproj
|
||||
{
|
||||
@ -7,8 +8,11 @@ namespace test_csproj
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod()
|
||||
{
|
||||
Assert.AreEqual((1 + 1), 2);
|
||||
{
|
||||
Console.WriteLine("TestMethod");
|
||||
int calculatedResult = 1000 / 25;
|
||||
int expectedResult = 40;
|
||||
Assert.AreEqual(calculatedResult, expectedResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>$(TEST_TARGET_FRAMEWORK)</TargetFramework>
|
||||
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<!-- These packages will be downloaded over the network for testing proxy settings -->
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.5.0-preview-20170810-02" />
|
||||
<PackageReference Include="MSTest.TestAdapter" Version="1.1.18" />
|
||||
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
|
||||
|
Reference in New Issue
Block a user