Skip to content

Commit

Permalink
Shorting the symbol extractor tests approval names
Browse files Browse the repository at this point in the history
  • Loading branch information
dudikeleti committed Jan 18, 2024
1 parent a0379fe commit 57aba60
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 239 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"service": "test",
"env": "test",
"version": "0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private async Task Test(Type type)
Assert.True(root.Scopes.Count == 1);
Assert.True(root.Scopes.First().Scopes.Length == 1);
Assert.True(root.Scopes.First().Scopes.First().Name == type.FullName);
var settings = ConfigureVerifySettings(assembly.GetName().Name, type.FullName);
var settings = ConfigureVerifySettings(type.Name);
var toVerify = GetStringToVerify(root);
await Verifier.Verify(toVerify, settings);
}
Expand All @@ -62,7 +62,7 @@ private async Task TestDnlib(Type type)
Assert.True(root.Scopes.Count == 1);
Assert.True(root.Scopes.First().Scopes.Length == 1);
Assert.True(root.Scopes.First().Scopes.First().Name == type.FullName);
var settings = ConfigureVerifySettings(assembly.GetName().Name, type.FullName);
var settings = ConfigureVerifySettings(type.Name);
var toVerify = GetStringToVerify(root);
await Verifier.Verify(toVerify, settings);
}
Expand Down Expand Up @@ -143,10 +143,10 @@ void SanitizeScopeToVerify(ref Trace.Debugger.Symbols.Model.Scope scope)
}
}

private VerifySettings ConfigureVerifySettings(string assemblyName, string className)
private VerifySettings ConfigureVerifySettings(string className)
{
var settings = new VerifySettings();
settings.UseFileName($"{nameof(SymbolExtractorTest)}.{assemblyName}.{className}");
settings.UseFileName($"{nameof(SymbolExtractorTest)}.{className}");
settings.DisableRequireUniquePrefix();
settings.UseDirectory("SymbolExtractor/Approvals");
return settings;
Expand Down

0 comments on commit 57aba60

Please sign in to comment.