You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
497 B
31 lines
497 B
2 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using System.Threading.Tasks;
|
||
|
using Xunit;
|
||
|
|
||
|
namespace Zncy.CloudCar.Tests
|
||
|
{
|
||
|
public class UnitTest1
|
||
|
{
|
||
|
[Fact]
|
||
|
public void Test1()
|
||
|
{
|
||
|
|
||
|
Assert.Equal(4, Add(2, 3));
|
||
|
}
|
||
|
|
||
|
[Fact]
|
||
|
public void FailingTest()
|
||
|
{
|
||
|
Assert.Equal(5, Add(2, 2));
|
||
|
}
|
||
|
|
||
|
int Add(int x, int y)
|
||
|
{
|
||
|
return x + y;
|
||
|
}
|
||
|
}
|
||
|
}
|