Last active
October 24, 2019 08:53
-
-
Save AndreyAkinshin/b7a338739c020b911995089636bf6cde to your computer and use it in GitHub Desktop.
AssemblyNameTests.cs
This file contains hidden or 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
using System.Reflection; | |
using Xunit; | |
namespace AssemblyNameTests | |
{ | |
public class ParsingTests | |
{ | |
[Theory] | |
[InlineData(" Por ta bility")] | |
[InlineData("'Por, tability!'")] | |
[InlineData("'Por,tability\"")] | |
[InlineData("'Por\"tability'")] | |
[InlineData("\"Por ta bility. \n \t \"")] | |
[InlineData("\"Por'tability\"")] | |
[InlineData("\"Por,tability'")] | |
[InlineData("\"Por,tability\"")] | |
[InlineData("\"portability\"")] | |
[InlineData("\\\"Portability")] | |
[InlineData("\\u32;\\u0030;\\u00030;\\u00000039;")] | |
[InlineData("\r\n \tPor ta bility")] | |
[InlineData("\t\tPor ta bility")] | |
[InlineData("Por ta bility ")] | |
[InlineData("Por tability")] | |
[InlineData("Por\"tability")] | |
[InlineData("Por\\,tability")] | |
[InlineData("Por\\\"tability")] | |
[InlineData("Por\\ta;bility")] | |
[InlineData("Por\\ta\\\"bi\\lity")] | |
[InlineData("Portability \n")] | |
[InlineData("Portability")] | |
public void CanBeParsed(string name) => new AssemblyName(name); | |
} | |
} |
Author
AndreyAkinshin
commented
Oct 24, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment