Expiriments with AvaloniaEdit and tracking document changes
This commit is contained in:
parent
29a141a971
commit
6325409d25
53 changed files with 643 additions and 627 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using pgLabII.PgUtils.ConnectionStrings;
|
||||
using pgLabII.PgUtils.Tests.ConnectionStrings.Util;
|
||||
|
||||
namespace pgLabII.PgUtils.Tests.ConnectionStrings;
|
||||
|
||||
|
|
@ -11,18 +12,18 @@ public class PqConnectionStringTokenizerTests
|
|||
public void GetKeyword_Success(string input, string expected)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
|
||||
Assert.Equal(expected, subject.GetKeyword());
|
||||
var result = subject.GetKeyword();
|
||||
ResultAssert.Success(result, expected);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("=")]
|
||||
[InlineData("")]
|
||||
[InlineData(" ")]
|
||||
public void GetKeyword_Throws(string input)
|
||||
public void GetKeyword_Errors(string input)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
Assert.Throws<PqConnectionStringParserException>(() => subject.GetKeyword());
|
||||
ResultAssert.Failed(subject.GetKeyword());
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
|
@ -36,7 +37,7 @@ public class PqConnectionStringTokenizerTests
|
|||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
|
||||
Assert.Equal(expected, subject.Eof);
|
||||
Assert.Equal(expected, subject.IsEof);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
|
@ -46,7 +47,7 @@ public class PqConnectionStringTokenizerTests
|
|||
public void ConsumeEquals_Success(string input)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
subject.ConsumeEquals();
|
||||
ResultAssert.Success(subject.ConsumeEquals());
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
|
@ -57,7 +58,8 @@ public class PqConnectionStringTokenizerTests
|
|||
public void ConsumeEquals_Throws(string input)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
Assert.Throws<PqConnectionStringParserException>(() => subject.ConsumeEquals());
|
||||
var result = subject.ConsumeEquals();
|
||||
ResultAssert.Failed(result);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
|
@ -69,7 +71,8 @@ public class PqConnectionStringTokenizerTests
|
|||
public void GetValue_Success(string input, string expected)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
Assert.Equal(expected, subject.GetValue());
|
||||
var result = subject.GetValue();
|
||||
ResultAssert.Success(result, expected);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
|
|
@ -80,6 +83,7 @@ public class PqConnectionStringTokenizerTests
|
|||
public void GetValue_Throws(string input)
|
||||
{
|
||||
PqConnectionStringTokenizer subject = new(input);
|
||||
Assert.Throws<PqConnectionStringParserException>(() => subject.GetValue());
|
||||
var result = subject.GetValue();
|
||||
ResultAssert.Failed(result);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue