Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis
Created July 13, 2018 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdyrrahitis/a5bbfc5ae4fb85ca3f5ab24769c30f9e to your computer and use it in GitHub Desktop.
Save gdyrrahitis/a5bbfc5ae4fb85ca3f5ab24769c30f9e to your computer and use it in GitHub Desktop.
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