add csharpier
This commit is contained in:
@@ -27,17 +27,17 @@ public class InheritedInterfaceTests
|
||||
[Theory]
|
||||
[InlineData(false, false)]
|
||||
[InlineData(true, true)]
|
||||
public void GenerateFiles_InheritedInterface_InheritFromBaseClass(bool proxyBaseClass, bool inheritBaseInterface)
|
||||
public void GenerateFiles_InheritedInterface_InheritFromBaseClass(
|
||||
bool proxyBaseClass,
|
||||
bool inheritBaseInterface
|
||||
)
|
||||
{
|
||||
var name = "Child";
|
||||
var interfaceName = "I" + name;
|
||||
var proxyName = name + "Proxy";
|
||||
|
||||
// Arrange
|
||||
string[] fileNames = [
|
||||
$"{Namespace}.{interfaceName}.g.cs",
|
||||
$"{Namespace}.{proxyName}.g.cs"
|
||||
];
|
||||
string[] fileNames = [$"{Namespace}.{interfaceName}.g.cs", $"{Namespace}.{proxyName}.g.cs"];
|
||||
var path = $"./Source/Disposable/{interfaceName}.cs";
|
||||
SourceFile sourceFile = CreateSourceFile(path, name, proxyBaseClass);
|
||||
|
||||
@@ -69,10 +69,7 @@ public class InheritedInterfaceTests
|
||||
var proxyName = name + "Proxy";
|
||||
|
||||
// Arrange
|
||||
string[] fileNames = [
|
||||
$"{Namespace}.{interfaceName}.g.cs",
|
||||
$"{Namespace}.{proxyName}.g.cs"
|
||||
];
|
||||
string[] fileNames = [$"{Namespace}.{interfaceName}.g.cs", $"{Namespace}.{proxyName}.g.cs"];
|
||||
|
||||
var path = $"./Source/Disposable/{interfaceName}.cs";
|
||||
SourceFile sourceFile = CreateSourceFile(path, name, true);
|
||||
@@ -107,10 +104,7 @@ public class InheritedInterfaceTests
|
||||
var proxyName = name + "Proxy";
|
||||
|
||||
// Arrange
|
||||
string[] fileNames = [
|
||||
$"{Namespace}.{interfaceName}.g.cs",
|
||||
$"{Namespace}.{proxyName}.g.cs"
|
||||
];
|
||||
string[] fileNames = [$"{Namespace}.{interfaceName}.g.cs", $"{Namespace}.{proxyName}.g.cs"];
|
||||
var interfaceIndex = 1;
|
||||
var path = $"./Source/Disposable/{interfaceName}.cs";
|
||||
SourceFile sourceFile = CreateSourceFile(path, name, true);
|
||||
@@ -161,4 +155,4 @@ public class InheritedInterfaceTests
|
||||
builder.Text.Should().Be(File.ReadAllText($"{OutputPath}{fileName.fileName}"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user