Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Exercises start #1

Open
wants to merge 5 commits into
base: exercises-start
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
testing branch
rmcdevitt1 committed Aug 8, 2021
commit d435e146f2a95ba65f9f5c7bc2eaa1342d424bc6
3 changes: 3 additions & 0 deletions Car/Program.cs
Original file line number Diff line number Diff line change
@@ -8,6 +8,9 @@ static void Main(string[] args)
{
Car car = new Car("Toyota", "Prius", 10, 50);
Console.WriteLine(car.Make + " - " + car.Model);
Console.WriteLine(car.Make + " ~~ " + car.Model);

}

}
}
6 changes: 5 additions & 1 deletion CarTests/CarTests.cs
Original file line number Diff line number Diff line change
@@ -7,12 +7,16 @@ namespace CarTests
public class CarTests
{
//TODO: add emptyTest so we can configure our runtime environment (remove this test before pushing to your personal GitHub account)

[TestMethod]
public void EmptyTest()
{
Assert.AreEqual(10, 10, .001);
}


//TODO: constructor sets gasTankLevel properly

Car test_car;

[TestInitialize]
@@ -21,13 +25,13 @@ public void CreateCarObject()
test_car = new Car("Toyota", "Prius", 10, 50);
}

//TODO: constructor sets gasTankLevel properly
[TestMethod]
public void TestInitialGasTank()
{
Assert.AreEqual(10, test_car.GasTankLevel, .001);
}


//TODO: gasTankLevel is accurate after driving within tank range
//TODO: gasTankLevel is accurate after attempting to drive past tank range
//TODO: can't have more gas than tank size, expect an exception