Exemple #1
0
        public void Should_Success_Instantiate()
        {
            var criteria = new List <CriteriaViewModel>()
            {
                new CriteriaViewModel()
            };
            FabricGradeTestViewModel viewModel = new FabricGradeTestViewModel()
            {
                Criteria        = criteria,
                FabricGradeTest = 1,
                FinalArea       = 1,
                FinalGradeTest  = 1,
                FinalLength     = 1,
                FinalScore      = 1,
                Grade           = "A",
                PointLimit      = 1,
                PointSystem     = 1,
                Score           = 1,
                Type            = "Type"
            };

            Assert.Equal(criteria, viewModel.Criteria);
            Assert.Equal(1, viewModel.FabricGradeTest);
            Assert.Equal(1, viewModel.FinalArea);
            Assert.Equal(1, viewModel.FinalGradeTest);
            Assert.Equal(1, viewModel.FinalLength);
            Assert.Equal(1, viewModel.FinalScore);
            Assert.Equal("A", viewModel.Grade);
            Assert.Equal(1, viewModel.PointLimit);
            Assert.Equal(1, viewModel.PointSystem);
            Assert.Equal(1, viewModel.Score);
            Assert.Equal("Type", viewModel.Type);
        }
        public void validate_Throws_NotImplementedException()
        {
            FabricGradeTestViewModel viewModel = new FabricGradeTestViewModel();

            Assert.Throws <NotImplementedException>(() => viewModel.Validate(null));
        }