-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v2.3, Fixed MVC WebProject Support, Fixed path for files with…
… folders and minor improvements
- Loading branch information
1 parent
184c87d
commit 65a36cf
Showing
7 changed files
with
100 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
using Dapper.Crud.VSExtension.Helpers; | ||
using System.IO; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using Xunit; | ||
using Assert = Xunit.Assert; | ||
|
||
namespace Dapper.Crud.Tests | ||
{ | ||
public class AssemblyTest | ||
{ | ||
[Fact] | ||
public void TestGenerateInstance() | ||
{ | ||
// Arrange | ||
var path = Path.GetFullPath(@"..\..\..\Dapper.Crud.Model\"); | ||
var objText = File.ReadAllText(path + "User.cs"); | ||
//[Fact, Ignore] | ||
//public void TestGenerateInstance() | ||
//{ | ||
// // Arrange | ||
// var path = Path.GetFullPath(@"..\..\..\Dapper.Crud.Model\"); | ||
// var objText = File.ReadAllText(path + "User.cs"); | ||
|
||
// Act | ||
var instance = AssemblyHelper.ExecuteCode(objText, "Dapper.Crud.ModelExample", "User", false); | ||
// // Act | ||
// var instance = AssemblyHelper.ExecuteCode(objText, "Dapper.Crud.ModelExample", "User", false); | ||
|
||
// Assert | ||
Assert.True(instance != null); | ||
} | ||
// // Assert | ||
// Assert.True(instance != null); | ||
//} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters