diff --git a/DocsBr.Tests/CNPJTests.cs b/DocsBr.Tests/CNPJTests.cs index b2ffa0d..86d377c 100644 --- a/DocsBr.Tests/CNPJTests.cs +++ b/DocsBr.Tests/CNPJTests.cs @@ -1,6 +1,4 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace DocsBr.Tests +namespace DocsBr.Tests { [TestClass] public class CNPJTests diff --git a/DocsBr.Tests/ChaveAcessoTests.cs b/DocsBr.Tests/ChaveAcessoTests.cs index 9b7ae6c..7fa36e0 100644 --- a/DocsBr.Tests/ChaveAcessoTests.cs +++ b/DocsBr.Tests/ChaveAcessoTests.cs @@ -1,4 +1,5 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; + +using Microsoft.VisualStudio.TestTools.UnitTesting; using System; namespace DocsBr.Tests @@ -49,7 +50,7 @@ public void TestShouldSetupValidChaveAcesso() Assert.AreEqual("0", ca.FormaEmissao); Assert.AreEqual("26730161", ca.CodigoNumerico); Assert.AreEqual("5", ca.DigitoVerificador); - } + } [TestMethod] public void TestShouldValidatesChavesAcesso() diff --git a/DocsBr.Tests/DocsBr.Tests.csproj b/DocsBr.Tests/DocsBr.Tests.csproj index a7cf21e..154df45 100644 --- a/DocsBr.Tests/DocsBr.Tests.csproj +++ b/DocsBr.Tests/DocsBr.Tests.csproj @@ -1,128 +1,27 @@ - - + + - Debug - AnyCPU - {67359E77-34CC-45DD-82F1-6DDBBE644C5E} - Library - Properties - DocsBr.Tests - DocsBr.Tests - v4.5.2 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 10.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 + net8.0 + enable + enable + + false + true + - + + + + - - - - - - - - - - False - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - {c5e55497-8b55-493f-bf9f-ae7afca5c368} - DocsBr - + - - - - - False - - - False - - - False - - - False - - - - - - - - \ No newline at end of file + + diff --git a/DocsBr.Tests/IEAcreValidatorTests.cs b/DocsBr.Tests/IEAcreValidatorTests.cs index 83116a5..ea3a173 100644 --- a/DocsBr.Tests/IEAcreValidatorTests.cs +++ b/DocsBr.Tests/IEAcreValidatorTests.cs @@ -1,19 +1,19 @@ -using Microsoft.VisualStudio.TestTools.UnitTesting; -using DocsBr.Validation.IE; +using DocsBr.Validation.IE; +using Microsoft.VisualStudio.TestTools.UnitTesting; namespace DocsBr.Tests { [TestClass] public class IEAcreValidatorTests : IEValidatorTests { - private static string[] validValues = - { + private static string[] validValues = + { "01.004.823/001-12", "01.004.141/001-46", "01.001.349/001-77", "01.956.867/001-07", "01.379.333/036-16", "01.367.306/773-60", "01.658.566/892-98", "01.689.555/741-67" }; - private static string[] invalidValues = + private static string[] invalidValues = { "12.345.678.901-07", "01.004.823/001-02" }; @@ -25,7 +25,7 @@ protected override IIEValidator GetValidator(string ie) { return new IEAcreValidator(ie); } - + [TestMethod] public void TestShouldInvalidateIEWithMoreDigitsThanAllowed() { diff --git a/DocsBr.Tests/Properties/AssemblyInfo.cs b/DocsBr.Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index 31b3f49..0000000 --- a/DocsBr.Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DocsBr.Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DocsBr.Tests")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("67359e77-34cc-45dd-82f1-6ddbbe644c5e")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.21.1104.1402")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/DocsBr.sln b/DocsBr.sln index 9175ff6..55a3e72 100644 --- a/DocsBr.sln +++ b/DocsBr.sln @@ -1,11 +1,10 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.23107.0 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34714.143 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocsBr", "DocsBr\DocsBr.csproj", "{C5E55497-8B55-493F-BF9F-AE7AFCA5C368}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DocsBr", "DocsBr\DocsBr.csproj", "{C5E55497-8B55-493F-BF9F-AE7AFCA5C368}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocsBr.Tests", "DocsBr.Tests\DocsBr.Tests.csproj", "{67359E77-34CC-45DD-82F1-6DDBBE644C5E}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DocsBr.Tests", "DocsBr.Tests\DocsBr.Tests.csproj", "{6085A62B-E05B-4351-802E-8B1CE5D858F0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -17,12 +16,15 @@ Global {C5E55497-8B55-493F-BF9F-AE7AFCA5C368}.Debug|Any CPU.Build.0 = Debug|Any CPU {C5E55497-8B55-493F-BF9F-AE7AFCA5C368}.Release|Any CPU.ActiveCfg = Release|Any CPU {C5E55497-8B55-493F-BF9F-AE7AFCA5C368}.Release|Any CPU.Build.0 = Release|Any CPU - {67359E77-34CC-45DD-82F1-6DDBBE644C5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {67359E77-34CC-45DD-82F1-6DDBBE644C5E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {67359E77-34CC-45DD-82F1-6DDBBE644C5E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {67359E77-34CC-45DD-82F1-6DDBBE644C5E}.Release|Any CPU.Build.0 = Release|Any CPU + {6085A62B-E05B-4351-802E-8B1CE5D858F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6085A62B-E05B-4351-802E-8B1CE5D858F0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6085A62B-E05B-4351-802E-8B1CE5D858F0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6085A62B-E05B-4351-802E-8B1CE5D858F0}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {AEC8256E-1B8B-4E0D-A0EE-8B111423ECEA} + EndGlobalSection EndGlobal diff --git a/DocsBr/ChaveAcesso.cs b/DocsBr/ChaveAcesso.cs index d2d832b..0bb91e7 100644 --- a/DocsBr/ChaveAcesso.cs +++ b/DocsBr/ChaveAcesso.cs @@ -222,7 +222,7 @@ public ChaveAcesso(string uf, int ano, int mes, string cnpj, string modelo, stri } Setup((int)ufAsEnum, ano, mes, cnpj, modelo, serie, numero, formaEmissao, codigoNumerico); - + } public ChaveAcesso(int uf, int ano, int mes, string cnpj, string modelo, string serie, string numero, string formaEmissao, string codigoNumerico) diff --git a/DocsBr/DocsBr.csproj b/DocsBr/DocsBr.csproj index 4ff1944..084f4b1 100644 --- a/DocsBr/DocsBr.csproj +++ b/DocsBr/DocsBr.csproj @@ -1,96 +1,16 @@ - - - + - Debug - AnyCPU - {C5E55497-8B55-493F-BF9F-AE7AFCA5C368} + net8.0 Library - Properties - DocsBr - DocsBr - v4.5.2 - 512 + false + DocsBr + DocsBr + Copyright © 2015 + 1.21.1104.1402 + 1.0.0.0 - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - \ No newline at end of file diff --git a/DocsBr/Properties/AssemblyInfo.cs b/DocsBr/Properties/AssemblyInfo.cs index 4bde428..f17fde0 100644 --- a/DocsBr/Properties/AssemblyInfo.cs +++ b/DocsBr/Properties/AssemblyInfo.cs @@ -1,16 +1,6 @@ using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DocsBr")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DocsBr")] -[assembly: AssemblyCopyright("Copyright © 2015")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -21,16 +11,3 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("c5e55497-8b55-493f-bf9f-ae7afca5c368")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.21.1104.1402")] -[assembly: AssemblyFileVersion("1.0.0.0")]