LaunchCodeEducation / csharp-web-dev-curriculum

Hugo version of C# Unit 2
http://education.launchcode.org/csharp-web-dev-curriculum/
1 stars 5 forks source link

Chapter 6 Exercises code example doesn't follow C# syntax convention #68

Open matthewcreek opened 3 months ago

matthewcreek commented 3 months ago

Relevant Link

Code examples:

   //TODO: can't have more gas than tank size, expect an exception
   [TestMethod]
   public void TestGasOverfillException() {

   }
   public void AddGas(double gas) {
     GasTankLevel += gas;
   }

Suggested change: using Allman style syntax the code should read:

   [TestMethod]
   public void TestGasOverfillException() 
    {

    }
   public void AddGas(double gas) 
   {
     GasTankLevel += gas;
   }