예제 #1
0
        public void AppUserTestPropertiesTest()
        {
            validAppUser = new AppUser()
            {
                Id = validAppUserID
            };
            validTest = new Test()
            {
                ID = validTestID
            };
            appUserTest = new MScApp.Core.AppUserTest()
            {
                AppUser   = validAppUser,
                AppUserID = validAppUser.Id,
                Test      = validTest,
                TestID    = validTest.ID
            };


            Assert.NotNull(validTest);
            Assert.IsType <Test>(validTest);
            Assert.NotNull(validAppUser);
            Assert.IsType <AppUser>(validAppUser);

            Assert.Equal(validTest, appUserTest.Test);
            Assert.Equal(validTestID, appUserTest.TestID);
            Assert.Equal(validAppUser, appUserTest.AppUser);
            Assert.Equal(validAppUserID, appUserTest.AppUserID);
        }
예제 #2
0
        public void AppUserTestConstructorTest()
        {
            appUserTest = new MScApp.Core.AppUserTest();

            Assert.NotNull(appUserTest);
            Assert.IsType <MScApp.Core.AppUserTest>(appUserTest);
        }