This repository has been archived by the owner on Feb 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Showing
6 changed files
with
73 additions
and
2 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
37 changes: 37 additions & 0 deletions
37
NetFx/UnitTests/DecaTec.WebDav.NetFx.UnitTest/UnitTestTextHelper.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,37 @@ | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace DecaTec.WebDav.NetFx.UnitTest | ||
{ | ||
[TestClass] | ||
public class UnitTestTextHelper | ||
{ | ||
[TestMethod] | ||
public void UT_NetFx_TextHelper_StringContainsRawUnicodeWithRawUnicode() | ||
{ | ||
string strUni = "\u03a0"; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(true, res); | ||
} | ||
|
||
[TestMethod] | ||
public void UT_NetFx_TextHelper_StringContainsRawUnicodeWithOutRawUnicode() | ||
{ | ||
string strUni = "Test"; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(false, res); | ||
} | ||
|
||
[TestMethod] | ||
public void UT_NetFx_TextHelper_StringContainsRawUnicodeWithEmptyString() | ||
{ | ||
string strUni = string.Empty; ; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(false, res); | ||
} | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
Uwp/UnitTests/DecaTec.WebDav.Uwp.UnitTest/UnitTestTextHelper.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,32 @@ | ||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; | ||
|
||
namespace DecaTec.WebDav.Uwp.UnitTest | ||
{ | ||
[TestClass] | ||
public class UnitTestTextHelper | ||
{ | ||
[TestMethod] | ||
public void UT_UWP_TextHelper_StringContainsRawUnicodeWithRawUnicode() | ||
{ | ||
string strUni = "\u03a0"; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(true, res); | ||
} | ||
|
||
[TestMethod] | ||
public void UT_UWP_TextHelper_StringContainsRawUnicodeWithOutRawUnicode() | ||
{ | ||
string strUni = "Test"; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(false, res); | ||
} | ||
|
||
[TestMethod] | ||
public void UT_UWP_TextHelper_StringContainsRawUnicodeWithEmptyString() | ||
{ | ||
string strUni = string.Empty; ; | ||
var res = TextHelper.StringContainsRawUnicode(strUni); | ||
Assert.AreEqual(false, res); | ||
} | ||
} | ||
} |