public void Calculating_Meters()
        {
            var subject = new RoomCalculator();
            var area    = subject.Area(length: 15.0f, width: 20.0f);

            Assert.That(area.Meters, Is.EqualTo(27.871f).Within(0.01));
        }
        public void Calculating_Feet()
        {
            var subject = new RoomCalculator();
            var area    = subject.Area(length: 15.0f, width: 20.0f);

            Assert.That(area.Feet, Is.EqualTo(300.0f));
        }
        public void Execute()
        {
            Console.Write("What is the length of the room in feet? ");
            var length = Console.ReadLine();

            Console.Write("What is the width of the room in feet? ");
            var width = Console.ReadLine();

            Console.WriteLine("You entered dimensions of {0} feet by {1} feet.", length, width);

            Console.WriteLine("The area is");

            var roomCalculator = new RoomCalculator();
            Area area = roomCalculator.Area(float.Parse(length), float.Parse(width));

            Console.WriteLine("{0} square feet.", area.Feet);
            Console.WriteLine("{0} square meters.", area.Meters);
        }
        public void Execute()
        {
            Console.Write("What is the length of the room in feet? ");
            var length = Console.ReadLine();

            Console.Write("What is the width of the room in feet? ");
            var width = Console.ReadLine();

            Console.WriteLine("You entered dimensions of {0} feet by {1} feet.", length, width);

            Console.WriteLine("The area is");

            var  roomCalculator = new RoomCalculator();
            Area area           = roomCalculator.Area(float.Parse(length), float.Parse(width));

            Console.WriteLine("{0} square feet.", area.Feet);
            Console.WriteLine("{0} square meters.", area.Meters);
        }
 public void Calculating_Meters()
 {
     var subject = new RoomCalculator();
     var area = subject.Area(length: 15.0f, width: 20.0f);
     Assert.That(area.Meters, Is.EqualTo(27.871f).Within(0.01));
 }
 public void Calculating_Feet()
 {
     var subject = new RoomCalculator();
     var area = subject.Area(length: 15.0f, width: 20.0f);
     Assert.That(area.Feet, Is.EqualTo(300.0f));
 }