-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be9a920
commit 4b6c6c7
Showing
14 changed files
with
1,108 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[*.cs] | ||
|
||
# IDE0063: Use simple 'using' statement | ||
csharp_prefer_simple_using_statement = true:none |
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,45 @@ | ||
// ========================================================================== | ||
// Squidex Headless CMS | ||
// ========================================================================== | ||
// Copyright (c) Squidex UG (haftungsbeschraenkt) | ||
// All rights reserved. Licensed under the MIT license. | ||
// ========================================================================== | ||
|
||
using Squidex.CLI.Commands.Implementation; | ||
using Xunit; | ||
|
||
namespace Squidex.CLI.Tests | ||
{ | ||
public class LoremIpsumTests | ||
{ | ||
[Fact] | ||
public void Should_generate_single_character() | ||
{ | ||
var result = LoremIpsum.Text(1, false); | ||
|
||
Assert.Equal("l", result); | ||
} | ||
|
||
[Fact] | ||
public void Should_generate_html_text() | ||
{ | ||
for (var i = 0; i < 5000; i++) | ||
{ | ||
var result = LoremIpsum.Text(i, true); | ||
|
||
Assert.NotNull(result); | ||
} | ||
} | ||
|
||
[Fact] | ||
public void Should_generate_text() | ||
{ | ||
for (var i = 0; i < 5000; i++) | ||
{ | ||
var result = LoremIpsum.Text(i, false); | ||
|
||
Assert.NotNull(result); | ||
} | ||
} | ||
} | ||
} |
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
Oops, something went wrong.