-
-
Save gdyrrahitis/a5bbfc5ae4fb85ca3f5ab24769c30f9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Geometry.Tests { | |
using NUnit.Framework; | |
using static NUnit.Framework.Assert; | |
[TestFixture] | |
public class TriangleTests { | |
[Test] | |
public void Triangle_Area_OfSixBaseAndThreeHeight_IsNine_Test () { | |
// Arrange | |
const double @base = 6; | |
const double height = 3; | |
var triangle = new Triangle (); | |
// Act | |
var result = triangle.Area (@base, height); | |
// Assert | |
AreEqual (9.0d, result); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment