mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
5ad3446d67
commit
1f7f092ff6
4 changed files with 33 additions and 5 deletions
|
|
@ -5,9 +5,14 @@ namespace FilterLists.Api.Tests
|
|||
public class ListsControllerTests
|
||||
{
|
||||
[Fact]
|
||||
public void MyTest()
|
||||
public void MethodName_StateUnderTest_ExpectedBehaviour()
|
||||
{
|
||||
//Arrange
|
||||
|
||||
//Act
|
||||
|
||||
//Assert
|
||||
Assert.True(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -11,4 +11,8 @@
|
|||
<PackageReference Include="xunit" Version="2.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\FilterLists.Data\FilterLists.Data.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -1,13 +1,27 @@
|
|||
using Xunit;
|
||||
using System;
|
||||
using FilterLists.Data.Models.Implementations;
|
||||
using Xunit;
|
||||
|
||||
namespace FilterLists.Data.Tests
|
||||
{
|
||||
public class ListRepositoryTests
|
||||
{
|
||||
[Fact]
|
||||
public void MyTest()
|
||||
public void GetByName_ListNameIsNotNull_ReturnsValidIList()
|
||||
{
|
||||
|
||||
//Arrange
|
||||
var list = new List
|
||||
{
|
||||
AddedDateUtc = DateTime.MinValue,
|
||||
Author = "John Doe",
|
||||
Description = "A filter list.",
|
||||
DescriptionSourceUrl = "https://filterlists.com"
|
||||
};
|
||||
|
||||
//Act
|
||||
|
||||
//Assert
|
||||
Assert.True(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -5,9 +5,14 @@ namespace FilterLists.Services.Tests
|
|||
public class ListServiceTests
|
||||
{
|
||||
[Fact]
|
||||
public void MyTest()
|
||||
public void MethodName_StateUnderTest_ExpectedBehaviour()
|
||||
{
|
||||
//Arrange
|
||||
|
||||
//Act
|
||||
|
||||
//Assert
|
||||
Assert.True(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue