Exemplo n.º 1
0
        internal GymWithPool ConstructorTest(string location)
        {
            GymWithPool target = new GymWithPool(location);

            return(target);
            // TODO: add assertions to method GymWithPoolTest.ConstructorTest(String)
        }
Exemplo n.º 2
0
        internal string ToStringTest([PexAssumeUnderTest] GymWithPool target)
        {
            string result = target.ToString();

            return(result);
            // TODO: add assertions to method GymWithPoolTest.ToStringTest(GymWithPool)
        }
Exemplo n.º 3
0
        public void ToStringTest56701()
        {
            GymWithPool gymWithPool;
            string      s;

            gymWithPool = new GymWithPool("");
            ((Gym)gymWithPool).Count = 0;
            s = this.ToStringTest(gymWithPool);
            Assert.AreEqual <string>
                ("The current gym is located at:  and it has a monthly cost of: £25.00 this gym has a pool ",
                s);
            Assert.IsNotNull((object)gymWithPool);
        }
Exemplo n.º 4
0
        public void BookItemTest555()
        {
            User        user;
            GymWithPool gymWithPool;
            string      s;

            user        = new User((string)null, (string)null, (string)null);
            gymWithPool = new GymWithPool((string)null);
            ((Gym)gymWithPool).Count = 0;
            s = this.BookItemTest(user, (IBookable)gymWithPool);
            Assert.AreEqual <string>("Booked  @ 25\nSubtotal = 25", s);
            Assert.IsNotNull((object)user);
            Assert.AreEqual <string>((string)null, user.Name);
            Assert.AreEqual <string>((string)null, user.UserName);
            Assert.AreEqual <string>((string)null, user.Password);
            Assert.AreEqual <int>(0, user.AccountNumber);
            Assert.AreEqual <double>(25, user.RunningCost);
        }
        public void SessionTypeTest174()
        {
            User        user;
            GymWithPool gymWithPool;
            string      s;

            user        = new User((string)null, (string)null, (string)null);
            gymWithPool = new GymWithPool((string)null);
            ((Gym)gymWithPool).Count = 0;
            s = this.SessionTypeTest(user, (IBookable)gymWithPool);
            Assert.AreEqual <string>
                ("The current gym is located at:  and it has a monthly cost of: £25.00 this gym has a pool  is a gym with a pool.",
                s);
            Assert.IsNotNull((object)user);
            Assert.AreEqual <string>((string)null, user.Name);
            Assert.AreEqual <string>((string)null, user.UserName);
            Assert.AreEqual <string>((string)null, user.Password);
            Assert.AreEqual <int>(0, user.AccountNumber);
            Assert.AreEqual <double>(0, user.RunningCost);
        }