public void TryCompileAssemblyWrongName() { var checker = new DataTypeChecker(); Assembly a = null; var err = checker.TryCompile(new DataType { Name = "InvalidName" }, out a); Assert.IsTrue(!string.IsNullOrEmpty(err)); }
public void TryCompileAssembly() { var checker = new DataTypeChecker(); Assembly a = null; var err = checker.TryCompile(new DataType { Name = "Test" }, out a); Assert.IsTrue(string.IsNullOrEmpty(err)); }
public void TryCompileAssemblyWithErrors() { var checker = new DataTypeChecker(); var error = "Error testing"; generator.Errors = new System.Collections.Generic.List <string>() { error }; Assembly a = null; var err = checker.TryCompile(new DataType { Name = "Test" }, out a); Assert.AreEqual(error, err); }