fix resource class name generation -> 0.0.3
This commit is contained in:
@@ -68,10 +68,12 @@ public class LogicResourcesTests
|
||||
var rm = Properties.Resources.ResourceManager;
|
||||
Assert.AreEqual(
|
||||
CodeSnippetFactory.CreateResourceMangerMemberCodeSnippet(
|
||||
"Resources",
|
||||
"Resources"
|
||||
).Value,
|
||||
string.Format(
|
||||
rm.GetString("ResourceManagerMemberTemplate") ?? string.Empty,
|
||||
"Resources",
|
||||
"Resources"
|
||||
)
|
||||
);
|
||||
@@ -83,6 +85,7 @@ public class LogicResourcesTests
|
||||
var rm = Properties.Resources.ResourceManager;
|
||||
|
||||
var rmSnippet = CodeSnippetFactory.CreateResourceMangerMemberCodeSnippet(
|
||||
"Resources",
|
||||
"Resources"
|
||||
);
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@ namespace TestNameSpace
|
||||
|
||||
#region ResourceManager
|
||||
|
||||
private static readonly Type _Type = typeof(ResourceManager);
|
||||
private static readonly Type _Type = typeof(TestResourceClass);
|
||||
|
||||
private static readonly Lazy<ResourceManager> _ResourceManager = new Lazy<ResourceManager>(
|
||||
() => new ResourceManager(_Type.FullName ?? string.Empty, _Type.Assembly),
|
||||
() => new ResourceManager(""ResourceManager"" ?? string.Empty, _Type.Assembly),
|
||||
LazyThreadSafetyMode.PublicationOnly
|
||||
);
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace TestNameSpace
|
||||
Some: v => CodeSnippetFactory.CreateResourceClassCodeSnippet(
|
||||
"TestNameSpace",
|
||||
"TestResourceClass",
|
||||
CodeSnippetFactory.CreateResourceMangerMemberCodeSnippet("ResourceManager"),
|
||||
CodeSnippetFactory.CreateResourceMangerMemberCodeSnippet("ResourceManager", "TestResourceClass"),
|
||||
v.Resources
|
||||
),
|
||||
None: () => throw new InvalidOperationException()
|
||||
|
||||
Reference in New Issue
Block a user