Finished Referencing Projects and Packages
parent
c36b3f5caf
commit
41bf0f3824
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace GradeBook
|
||||
{
|
||||
class Book
|
||||
public class Book
|
||||
{
|
||||
private List<double> grades;
|
||||
private string name;
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using Xunit;
|
||||
using GradeBook;
|
||||
|
||||
namespace GradeBook.Tests
|
||||
{
|
||||
public class BookTests
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
// arrange
|
||||
var book = new Book("");
|
||||
book.AddGrade(89.1);
|
||||
book.AddGrade(90.5);
|
||||
book.AddGrade(77.3);
|
||||
|
||||
// act
|
||||
book.ShowStaticstics();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,4 +19,8 @@
|
|||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\src\GradeBook\GradeBook.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
using System;
|
||||
using Xunit;
|
||||
|
||||
namespace GradeBook.Tests
|
||||
{
|
||||
public class UnitTest1
|
||||
{
|
||||
[Fact]
|
||||
public void Test1()
|
||||
{
|
||||
Assert.Equal(1,0);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue