I’m following this tutorial on how to write C# tests, https://www.youtube.com/watch?v=HYrXogLj7vg and its a great video however I can’t seem to initialize a new Reservation object as Visual Studio does not recognize the Fundamentals folder within TestNinja. Does anyone see anything wrong with this screenshot/Code?
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using TestNinja.Fundamentals;
namespace TestNinja.UnitTests
{
[TestClass]
public class ReservationTests
{
[TestMethod]
public void CanBeCancelledBy_UserIsAdmin_ReturnsTrue()
{
//Arrange
var reservation = new Reservation();
//Act
//Assert
}
}
}
[enter image description here](https://i.sstatic.net/f5gRqqY6.png)
I attempted to add
using TestNinja.Fundamentals;
However it does not correctly identify that it exists.
New contributor
Nathan Worth is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.