Files
reswcodegen/vs2013/ReswCodeGen.Tests/CodeGeneratorFactoryTests.cs
2017-11-09 09:47:38 +01:00

28 lines
927 B
C#

using System.IO;
using ChristianHelle.DeveloperTools.CodeGenerators.Resw.VSPackage.CustomTool;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace ChristianHelle.DeveloperTools.CodeGenerators.Resw.CustomTool.Tests
{
[TestClass]
[DeploymentItem("Resources/Valid/Resources.resw")]
public class CodeGeneratorFactoryTests
{
private string reswFileContents;
private const string CLASS_NAME = "C:\\Test\\Resources\\Strings.resw";
[TestInitialize]
public void Initialize()
{
reswFileContents = File.ReadAllText("Resources.resw");
}
[TestMethod]
public void CodeGeneratorFactoryReturnsValidInstance()
{
var target = new CodeGeneratorFactory();
var actual = target.Create(CLASS_NAME, "TestApp", reswFileContents);
Assert.IsNotNull(actual);
}
}
}