Ejemplo n.º 1
0
        public void BuildFile_NullClassInfo_CannotBuildFile()
        {
            bool expected = false;

            string       validationResult = "";
            ClassBuilder builder          = new SoftwareDesignerLibrary.ClassBuilder();

            builder.CodeBuilder = new CSharpCodeBuilder();

            bool actual = builder.CanBuildFile(validationResult);

            Assert.True(actual == expected);
        }
Ejemplo n.º 2
0
        public void BuildFile_FillClassName_CanBuildFile()
        {
            bool expected = true;

            string    validationResult = "";
            ClassInfo oClassInfo       = new SoftwareDesignerLibrary.ClassInfo();

            oClassInfo.ClassName = nameof(BuildFile_FillClassName_CanBuildFile);
            ClassBuilder builder = new SoftwareDesignerLibrary.ClassBuilder();

            builder.CodeBuilder = new CSharpCodeBuilder();
            builder.oClassInfo  = oClassInfo;

            bool actual = builder.CanBuildFile(validationResult);

            Assert.True(actual == expected);
        }