-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from dansiegel/autogenerated-message
add ability to customize Autogenerated Message
- Loading branch information
Showing
3 changed files
with
59 additions
and
4 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
12 changes: 12 additions & 0 deletions
12
tests/CodeGenHelpers.Tests/SampleCode/CustomAutoGeneratedMessage.cs
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This is a Custom Defined Message | ||
// See my Custom Copyright Message | ||
// | ||
// Don't Make Changes to this File!!! | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace CodeGenHelpers.SampleCode | ||
{ | ||
} |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace CodeGenHelpers.Tests | ||
{ | ||
public class CodeBuilderTests : TestBase | ||
{ | ||
public CodeBuilderTests(ITestOutputHelper testOutput) | ||
: base(testOutput) | ||
{ | ||
} | ||
|
||
[Fact] | ||
public void AddsCustomAutoGeneratedMessage() | ||
{ | ||
var builder = CodeBuilder.Create(Namespace) | ||
.WithAutoGeneratedMessage(@"This is a Custom Defined Message | ||
See my Custom Copyright Message | ||
Don't Make Changes to this File!!!"); | ||
|
||
MakeAssertion(builder, "CustomAutoGeneratedMessage"); | ||
} | ||
} | ||
} |