-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test - Add CamelCaseNaming Converter unit test
Resolves #2
- Loading branch information
Showing
3 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
CefSharp.Extensions.Test/ModelBinding/ModelBindingExtensionsFacts.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,24 @@ | ||
// Copyright © 2020 The CefSharp Authors. All rights reserved. | ||
// | ||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. | ||
|
||
using Xunit; | ||
using CefSharp.Extensions.ModelBinding; | ||
|
||
namespace CefSharp.Extensions.Test.ModelBinding | ||
{ | ||
public class ModelBindingExtensionsFacts | ||
{ | ||
[Theory] | ||
[InlineData("A", "A")] | ||
[InlineData("AB", "AB")] | ||
[InlineData("AString", "aString")] | ||
[InlineData("aString", "aString")] | ||
public void ConvertStringToCamelCaseTheory(string input, string expected) | ||
{ | ||
var actual = input.ConvertNameToCamelCase(); | ||
|
||
Assert.Equal(expected, actual); | ||
} | ||
} | ||
} |
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