private string GetResourceTextByFileName(string fileName)
        {
            string prefix = "KeyCdr.Tests.TextSamplesTests.WikipediaParsingSamples.";
            string html   = EmbeddedResources.LoadResourceAsString(prefix + fileName);

            return(html);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Xml Data to be loaded into DataSet for testing - correct data
 /// </summary>
 /// <returns>file resource</returns>
 private static IDictionary <string, IResourceDetails> GetCorrectData()
 {
     return(new Dictionary <string, IResourceDetails>(1, StringComparer.OrdinalIgnoreCase)
     {
         { TestResourceName, EmbeddedResources.CreateResourceDetails(ValidDataRaw) }
     });
 }
        private void InstallJavaScriptFiles(string assemblyName, IEnumerable <string> resourceNames)
        {
            var jsFiles = GetJavaScriptFiles(assemblyName, resourceNames);

            foreach (var theme in Themes.List(ThemeTypes.Site))
            {
                var supportedTheme = SupportedThemes.Get(theme.Id);
                if (supportedTheme == null)
                {
                    continue;
                }

                var themeName = supportedTheme.Name;
                foreach (var jsFile in jsFiles.ToList())
                {
                    using (var stream = EmbeddedResources.GetStream(jsFile.Path))
                    {
                        if (theme.IsConfigurationBased)
                        {
                            ThemeFiles.AddUpdateFactoryDefault(theme, ThemeProperties.JavascriptFiles, jsFile.Name, stream, (int)stream.Length);
                            stream.Seek(0, SeekOrigin.Begin);
                        }
                        ThemeFiles.AddUpdate(theme, ThemeTypes.Site, ThemeProperties.JavascriptFiles, jsFile.Name, stream, (int)stream.Length);
                    }
                }
            }
        }
Exemplo n.º 4
0
        public AccountManager(HorizonClient horizonClient, string initialProfileName = null)
        {
            _horizonClient = horizonClient;

            _profiles = new ConcurrentDictionary <string, UserProfile>();

            _accountSaveDataManager = new AccountSaveDataManager(_profiles);

            if (!_profiles.TryGetValue(DefaultUserId.ToString(), out _))
            {
                byte[] defaultUserImage = EmbeddedResources.Read("Ryujinx.HLE/HOS/Services/Account/Acc/DefaultUserImage.jpg");

                AddUser("RyuPlayer", defaultUserImage, DefaultUserId);

                OpenUser(DefaultUserId);
            }
            else
            {
                UserId commandLineUserProfileOverride = default;
                if (!string.IsNullOrEmpty(initialProfileName))
                {
                    commandLineUserProfileOverride = _profiles.Values.FirstOrDefault(x => x.Name == initialProfileName)?.UserId ?? default;
                    if (commandLineUserProfileOverride.IsNull)
                    {
                        Logger.Warning?.Print(LogClass.Application, $"The command line specified profile named '{initialProfileName}' was not found");
                    }
                }
                OpenUser(commandLineUserProfileOverride.IsNull ? _accountSaveDataManager.LastOpened : commandLineUserProfileOverride);
            }
        }
        private void RemovePages(string assemblyName, IEnumerable <string> resourceNames)
        {
            var xml          = new XmlDocument();
            var contentPages = Pages(assemblyName, resourceNames);

            foreach (var theme in Themes.List(ThemeTypes.Group))
            {
                var supportedTheme = SupportedThemes.Get(theme.Id);
                if (supportedTheme == null)
                {
                    continue;
                }

                var themeName = supportedTheme.Name;
                foreach (var contentPage in contentPages.Where(p => p.Theme == themeName).ToList())
                {
                    xml.LoadXml(EmbeddedResources.GetString(contentPage.Path));
                    foreach (XmlNode xmlPage in xml.SelectNodes("//contentFragmentPage"))
                    {
                        var pageName = xmlPage.Attributes["pageName"].Value;
                        if (theme.IsConfigurationBased)
                        {
                            ThemePages.DeleteFactoryDefault(theme, pageName, false);
                        }
                        ThemePages.DeleteDefault(theme, pageName, false);
                        ThemePages.Delete(theme, pageName, false);
                    }
                }
            }
        }
        public CompilerParameters ToCompilerParameters(string outputAssembly)
        {
            CompilerParameters cp = new CompilerParameters
            {
                GenerateExecutable      = false,
                GenerateInMemory        = false,
                WarningLevel            = WarningLevel,
                TreatWarningsAsErrors   = TreatWarningsAsErrors,
                IncludeDebugInformation = IncludeDebugInformation,
                CompilerOptions         = CompilerOptions,
                OutputAssembly          = outputAssembly,
                CoreAssemblyFileName    = CoreAssemblyFileName,
                Win32Resource           = Win32Resource
            };

            if (LinkedResources != null && LinkedResources.Count > 0)
            {
                cp.LinkedResources.AddRange(LinkedResources.ToArray());
            }

            if (EmbeddedResources != null && EmbeddedResources.Count > 0)
            {
                cp.EmbeddedResources.AddRange(EmbeddedResources.ToArray());
            }

            if (ReferencedAssemblies != null && ReferencedAssemblies.Count > 0)
            {
                cp.ReferencedAssemblies.AddRange(ReferencedAssemblies.ToArray());
            }

            return(cp);
        }
Exemplo n.º 7
0
        public SystemTray(IComputer computer, PersistentSettings settings, UnitManager unitManager)
        {
            _computer                 = computer;
            _settings                 = settings;
            _unitManager              = unitManager;
            computer.HardwareAdded   += HardwareAdded;
            computer.HardwareRemoved += HardwareRemoved;

            _mainIcon = new NotifyIconAdv();

            ContextMenu contextMenu  = new ContextMenu();
            MenuItem    hideShowItem = new MenuItem("Hide/Show");

            hideShowItem.Click += delegate
            {
                SendHideShowCommand();
            };
            contextMenu.MenuItems.Add(hideShowItem);
            contextMenu.MenuItems.Add(new MenuItem("-"));
            MenuItem exitItem = new MenuItem("Exit");

            exitItem.Click += delegate
            {
                SendExitCommand();
            };
            contextMenu.MenuItems.Add(exitItem);
            _mainIcon.ContextMenu  = contextMenu;
            _mainIcon.DoubleClick += delegate
            {
                SendHideShowCommand();
            };
            _mainIcon.Icon = EmbeddedResources.GetIcon("smallicon.ico");
            _mainIcon.Text = "Libre Hardware Monitor";
        }
Exemplo n.º 8
0
        private static DdrMetadataDatabaseEntry[] Load()
        {
            var db = EmbeddedResources
                     .GetArchive("RhythmCodex.Ddr.Processors.DdrMetadata.zip")
                     .Single()
                     .Value;

            using var mem = new MemoryStream(db);
            var doc   = XDocument.Load(mem);
            var root  = doc.Root;
            var songs = root.Elements("Song").ToArray();

            return(songs.Select(xml => new DdrMetadataDatabaseEntry
            {
                Id = xml.GetInt("Id").Value,
                Code = xml.GetString("Code"),
                Title = xml.GetString("Title"),
                Subtitle = xml.GetString("Subtitle"),
                Artist = xml.GetString("Artist"),
                TitleRoman = xml.GetString("TitleRoman"),
                SubtitleRoman = xml.GetString("SubtitleRoman"),
                ArtistRoman = xml.GetString("ArtistRoman"),
                TitleLocal = xml.GetString("TitleLocal"),
                SubtitleLocal = xml.GetString("SubtitleLocal"),
                ArtistLocal = xml.GetString("ArtistLocal"),
            }).ToArray());
        }
Exemplo n.º 9
0
        private static void AppendHelperFunction(CodeGenContext context, string filename)
        {
            string code = EmbeddedResources.ReadAllText(filename);

            context.AppendLine(code.Replace("\t", CodeGenContext.Tab));
            context.AppendLine();
        }
Exemplo n.º 10
0
        /// <summary>
        /// Writes a meta-interface (an empty interface implementing the given child interfaces) to a C# source file.
        /// </summary>
        /// <param name="ns">The namespace of the meta-interface.</param>
        /// <param name="file">The source file to write the meta-interface to.</param>
        /// <param name="name">The name of the meta-interface, without the "I" prefix.</param>
        /// <param name="ints">A set of child interfaces to implement.</param>
        /// <returns>An asynchronous task.</returns>
        public static async Task WriteMetaInterfaceAsync(string ns, string file, string name, IEnumerable <string> ints)
        {
            var interfaces = ints.ToArray();

            using (var sw = new StreamWriter(File.Open(file, FileMode.Create, FileAccess.ReadWrite, FileShare.Inheritable)))
            {
                sw.WriteLine("// <auto-generated />");
                sw.Write(EmbeddedResources.LicenseText(Path.GetFileName(file)));
                sw.WriteLine();
                sw.WriteLine("namespace " + ns);
                sw.WriteLine("{");
                sw.Write("    internal interface I" + name + " : " + interfaces[0]);
                for (var i = 1; i < interfaces.Length; i++)
                {
                    sw.WriteLine(",");
                    sw.Write("        " + interfaces[i]);
                }

                sw.WriteLine();
                sw.WriteLine("    {");
                sw.WriteLine("    }");
                sw.WriteLine("}");
                await sw.FlushAsync();
            }
        }
Exemplo n.º 11
0
        public void Customize(IFixture fixture)
        {
            fixture.Register <IYesSpaConfiguration>(() =>
            {
                var mockEmbeddedFileProvider = new Mock <IFileProvider>();
                mockEmbeddedFileProvider.Setup(x => x.GetFileInfo(It.IsAny <string>()))
                .Returns <string>(path =>
                {
                    var mockFileInfo = new Mock <IFileInfo>();
                    mockFileInfo.SetupGet(x => x.PhysicalPath).Returns(path);

                    return(EmbeddedResources.Any(s => s == path)
              ? mockFileInfo.Object
              : null);
                });

                var mockDefaultPageRewrite = new Mock <IDefaultPageRewrite>();
                mockDefaultPageRewrite.Setup(x => x.MatchRequest(It.IsAny <PathString>()))
                .Returns <PathString>(requestPath =>
                {
                    return(RewritePaths.ContainsKey(requestPath)
              ? (true, RewritePaths[requestPath])
              : (false, null));
                });

                var configuration = new Mock <IYesSpaConfiguration>();
                IList <IDefaultPageRewrite> defaultPageRewrites = new List <IDefaultPageRewrite> {
                    mockDefaultPageRewrite.Object
                };
                configuration.Setup(x => x.CreateDefaultPageRewrites()).Returns(defaultPageRewrites);

                return(configuration.Object);
            });
        }
Exemplo n.º 12
0
        public CompilerResults Build(string[] sourceCodes)
        {
            var csc = new CSharpCodeProvider(new Dictionary <string, string>()
            {
                { "CompilerVersion", CompilerVersion }
            });

            var parameters = new CompilerParameters();

            parameters.OutputAssembly          = OutputFile;
            parameters.GenerateExecutable      = Executable;
            parameters.GenerateInMemory        = GenerateInMemory;
            parameters.IncludeDebugInformation = IncludeDebugInfo;

            parameters.ReferencedAssemblies.AddRange(IncludedLibraries.ToArray());
            parameters.EmbeddedResources.AddRange(EmbeddedResources.ToArray());
            parameters.LinkedResources.AddRange(LinkedResources.ToArray());

            if (MainClass != null)
            {
                parameters.MainClass = MainClass;
            }

            CompilerResults results = csc.CompileAssemblyFromSource(parameters, sourceCodes);

            return(results);
        }
Exemplo n.º 13
0
        public CompilerResults Build(string dirWithSrc)
        {
            string[] sources = GetSourcesFromDir(dirWithSrc, new string[] { ".cpp", ".h" });

            var cppc = new CppCodeProvider();

            var parameters = new CompilerParameters();

            parameters.OutputAssembly          = OutputFile;
            parameters.GenerateExecutable      = Executable;
            parameters.GenerateInMemory        = GenerateInMemory;
            parameters.IncludeDebugInformation = IncludeDebugInfo;

            parameters.ReferencedAssemblies.AddRange(IncludedLibraries.ToArray());
            parameters.EmbeddedResources.AddRange(EmbeddedResources.ToArray());
            parameters.LinkedResources.AddRange(LinkedResources.ToArray());

            if (MainClass != null)
            {
                parameters.MainClass = MainClass;
            }

            CompilerResults results = cppc.CompileAssemblyFromSource(parameters, sources);

            return(results);
        }
Exemplo n.º 14
0
        private void PagePreRender(object sender, EventArgs e)
        {
            HttpContext context = HttpContext.Current;

            if (IsValid(context.Request))
            {
                Page page = HttpContext.Current.Handler as Page;

                if (page == null)
                {
                    return;
                }

                // TODO: Get Javascript and CSS from plugin properties
                string js  = EmbeddedResources.GetString(string.Format("{0}console.js", EmbeddedResources.BasePath));
                string css = EmbeddedResources.GetString(string.Format("{0}console.css", EmbeddedResources.BasePath));
                string url =
                    string.Format(
                        "/ControlPanel/Utility/RevertTheme.aspx?ThemeTypeID={0}&ThemeContextID={1}&ThemeName={2}",
                        SiteThemeContext.Instance().ThemeTypeID, Guid.Empty, CSContext.Current.SiteTheme);

                js += string.Format(@"
$(function () {{
    $.fourroads.plugins.themeConsole.register({{
        urls: {{
            modal: '{0}'
        }}
    }});
}})", url);
                Head.AddRawContent(string.Format(@"<style type=""text/css"">{0}</style>", css), HttpContext.Current);
                page.ClientScript.RegisterStartupScript(GetType(), "cacheconsole", js, true);
            }
        }
Exemplo n.º 15
0
 static RjcpSerialPort()
 {
     if (Utils.Runtime.OS != Utils.OperatingSystem.Windows)
     {
         EmbeddedResources.ExtractAll();
     }
 }
Exemplo n.º 16
0
        /// <summary>
        /// Writes an enum to a file.
        /// </summary>
        /// <param name="enum">The enum to write.</param>
        /// <param name="file">The file to write to.</param>
        /// <param name="ns">The namespace of this enum.</param>
        /// <param name="prefix">The constant prefix for the profile.</param>
        public static void WriteEnum(EnumerationSignature @enum, string file, string ns, string prefix)
        {
            using (var sw = new StreamWriter(File.Open(file, FileMode.Create, FileAccess.ReadWrite, FileShare.ReadWrite)))
            {
                sw.WriteLine("// <auto-generated />");
                sw.WriteLine(EmbeddedResources.LicenseText(Path.GetFileName(file)));
                sw.WriteLine("using System;");
                sw.WriteLine();
                sw.WriteLine("namespace " + ns);
                sw.WriteLine("{");
                sw.WriteLine("    /// <summary>");
                sw.Write("    /// An OpenGL enum");
                if (@enum.Tokens.Any())
                {
                    sw.Write(" containing values ");
                    sw.Write(@enum.Tokens.OrderBy(x => x.Value).FirstOrDefault()?.Value);
                    sw.Write(" through ");
                    sw.Write(@enum.Tokens.OrderBy(x => x.Value).LastOrDefault()?.Value);
                }

                sw.WriteLine(".");
                sw.WriteLine("    /// </summary>");
                sw.WriteLine("    public enum " + @enum.Name);
                sw.WriteLine("    {");
                WriteTokens(sw, @enum.Tokens, prefix);
                sw.WriteLine("    }");
                sw.WriteLine("}");
            }
        }
Exemplo n.º 17
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        public GateExtensionsUnitTests()
        {
            UnitTestDataSetLoader <GateDataSet> loader = new UnitTestDataSetLoader <GateDataSet>(new LocalCache(), new UnitTestResourceMonitor());

            UnitTestGateDataSet dataSetOverride = new UnitTestGateDataSet(ResourceNames.Gates, ResourceNames.TestGroups);

            dataSetOverride.Load(new Dictionary <string, IResourceDetails>(2, StringComparer.OrdinalIgnoreCase)
            {
                { ResourceNames.Gates, EmbeddedResources.GetEmbeddedResourceAsResourceDetails(ResourceNames.Gates, GetType()) },
                { ResourceNames.TestGroups, EmbeddedResources.GetEmbeddedResourceAsResourceDetails(ResourceNames.TestGroups, GetType()) }
            });

            loader.OverrideLoadedDataSet(dataSetOverride);

            Gate gate = new Gate("ActiveGate1");

            dataSetOverride.AddGateOverride(gate.Name, gate);

            gate = new Gate("ActiveGate2");
            dataSetOverride.AddGateOverride(gate.Name, gate);

            gate = new Gate("InactiveGate1")
            {
                UserTypes = UserGroupTypes.None
            };
            dataSetOverride.AddGateOverride(gate.Name, gate);

            gate = new Gate("InactiveGate2")
            {
                UserTypes = UserGroupTypes.None
            };
            dataSetOverride.AddGateOverride(gate.Name, gate);
            Gates = new Gates(loader);
        }
Exemplo n.º 18
0
        public SystemTray(IComputer computer)
        {
            this.computer             = computer;
            computer.HardwareAdded   += new HardwareEventHandler(HardwareAdded);
            computer.HardwareRemoved += new HardwareEventHandler(HardwareRemoved);

            this.mainIcon = new NotifyIcon();

            ContextMenuStrip  contextMenuStrip = new ContextMenuStrip();
            ToolStripMenuItem hideShowItem     = new ToolStripMenuItem("Hide/Show");

            hideShowItem.Click += delegate(object obj, EventArgs args) {
                SendHideShowCommand();
            };
            contextMenuStrip.Items.Add(hideShowItem);
            contextMenuStrip.Items.Add(new ToolStripSeparator());
            ToolStripMenuItem exitItem = new ToolStripMenuItem("Exit");

            exitItem.Click += delegate(object obj, EventArgs args) {
                SendExitCommand();
            };
            contextMenuStrip.Items.Add(exitItem);
            this.mainIcon.ContextMenuStrip = contextMenuStrip;
            this.mainIcon.DoubleClick     += delegate(object obj, EventArgs args) {
                SendHideShowCommand();
            };
            this.mainIcon.Icon = EmbeddedResources.GetIcon("smallicon.ico");
        }
Exemplo n.º 19
0
        public SystemTray(IComputer computer, PersistentSettings settings,
                          UnitManager unitManager)
        {
            this.computer             = computer;
            this.settings             = settings;
            this.unitManager          = unitManager;
            computer.HardwareAdded   += new HardwareEventHandler(HardwareAdded);
            computer.HardwareRemoved += new HardwareEventHandler(HardwareRemoved);

            this.mainIcon = new NotifyIconAdv();

            ContextMenu contextMenu  = new ContextMenu();
            MenuItem    hideShowItem = new MenuItem("Hide/Show");

            hideShowItem.Click += delegate(object obj, EventArgs args) {
                SendHideShowCommand();
            };
            contextMenu.MenuItems.Add(hideShowItem);
            contextMenu.MenuItems.Add(new MenuItem("-"));
            MenuItem exitItem = new MenuItem("Exit");

            exitItem.Click += delegate(object obj, EventArgs args) {
                SendExitCommand();
            };
            contextMenu.MenuItems.Add(exitItem);
            this.mainIcon.ContextMenu  = contextMenu;
            this.mainIcon.DoubleClick += delegate(object obj, EventArgs args) {
                SendHideShowCommand();
            };
            this.mainIcon.Icon = EmbeddedResources.GetIcon("smallicon.ico");
            this.mainIcon.Text = "HMonZ";
        }
        private static void CreateFileFromEmbeddedResource(string resourceName, string outputFile = null)
        {
            var directory = Directory.GetCurrentDirectory();

            using (var source = EmbeddedResources.GetStream(resourceName))
                using (var writer = File.Create(Path.Combine(directory, outputFile ?? resourceName)))
                    source.CopyTo(writer);
        }
        private static string GetEmbeddedResourceFileSqlServerScript(string filename)
        {
            string sqlCommandStr =
                EmbeddedResources
                .GetEmbeddedResourceFile($"AutoVersionsDB.DB.SqlServer.DBScripts.{filename}");

            return(sqlCommandStr);
        }
        public void Test_WithBasePathSet_Pass()
        {
            var er = new EmbeddedResources(typeof(EmbeddedResTests), "src.resources");

            string val = er.ResourceString("test.doc1.txt");

            Assert.True(val.NotNulle() && val.StartsWith(Txt1StartsWith));
        }
Exemplo n.º 23
0
        private static void CreateFileFromEmbeddedResource(string resourceName)
        {
            var directory = Directory.GetCurrentDirectory();

            using var source = EmbeddedResources.GetStream(resourceName);
            using var writer = File.Create(Path.Combine(directory, resourceName));
            source.CopyTo(writer);
        }
Exemplo n.º 24
0
 private static void LoadTransform(string fileName, XslCompiledTransform xslCompiledTransform)
 {
     using (var stream = EmbeddedResources.ReadResource(typeof(WaypointHelper).Assembly, fileName))
     {
         var xml = new XmlDocument();
         xml.Load(stream);
         xslCompiledTransform.Load(xml);
     }
 }
Exemplo n.º 25
0
        private static string LoadPageXml(string pageName)
        {
            var xml = new XmlDocument();

            xml.LoadXml(EmbeddedResources.GetString("Telligent.Services.SamlAuthenticationPlugin.Resources.Pages." + pageName + ".xml"));
            var xmlNode = xml.SelectSingleNode("theme/contentFragmentPages/contentFragmentPage");

            return(xmlNode != null ? xmlNode.OuterXml : String.Empty);
        }
Exemplo n.º 26
0
 private ResourceManager(Assembly forAssembly)
 {
     Assembly = forAssembly;
     foreach (var embeddedResourceName in Assembly.GetManifestResourceNames())
     {
         var stream = Assembly.GetManifestResourceStream(embeddedResourceName);
         EmbeddedResources.Add(new EmbeddedResource(embeddedResourceName, stream));
     }
 }
Exemplo n.º 27
0
        //public HttpResponseMessage Options()
        //{
        //	var response = new HttpResponseMessage();
        //	response.StatusCode = HttpStatusCode.OK;
        //	response.Headers.Add("Access-Control-Allow-Origin", "*");
        //	response.Headers.Add("Access-Control-Request-Headers", "*");
        //	response.Headers.Add("Access-Control-Allow-Methods", "GET,POST,PUT,DELETE,OPTIONS");

        //	return response;
        //}

        private byte[] GetDefaultProfileImage()
        {
            if (_defaultProfileImage == null)
            {
                _defaultProfileImage = EmbeddedResources.GetApiRequestFile(typeof(AvatarsController), "Resgrid.Web.Services.Properties.Resources.defaultProfile.png");
            }

            return(_defaultProfileImage);
        }
Exemplo n.º 28
0
        public void CheckSerializationAndDeserialization(string xmlPath, object obj)
        {
            var xml = EmbeddedResources.Get(xmlPath);

            xml = ReplaceVariable(xml);
            XmlAssert.AreEqual(xml, Serializer.Serialize(obj));
            var obj2 = Serializer.Deserialize(xml, obj.GetType());

            XmlAssert.AreEqual(xml, Serializer.Serialize(obj2));
        }
Exemplo n.º 29
0
        public void Uninstall()
        {
            if (!Diagnostics.IsDebug(GetType().Assembly))
            {
                #region Delete custom pages from theme (factory defaults, configured defaults, and contextual pages)

                string basePath = BaseResourcePath + "Themes.";

                EmbeddedResources.EnumerateReosurces(basePath, ".xml", resourceName =>
                {
                    XmlDocument xml = new XmlDocument();

                    try
                    {
                        xml.LoadXml(EmbeddedResources.GetString(resourceName));
                        XmlNode node = xml.SelectSingleNode("/theme/contentFragmentPages/contentFragmentPage");

                        if (node == null || node.Attributes == null)
                        {
                            return;
                        }

                        string pageName  = node.Attributes["pageName"].Value;
                        string themeType = node.Attributes["themeType"].Value;

                        if (string.IsNullOrEmpty(pageName) || string.IsNullOrEmpty(themeType))
                        {
                            return;
                        }

                        foreach (Theme theme in Themes.List(Guid.Parse(themeType)))
                        {
                            if (theme != null)
                            {
                                if (theme.IsConfigurationBased)
                                {
                                    ThemePages.DeleteFactoryDefault(theme, pageName, true);
                                }

                                ThemePages.DeleteDefault(theme, pageName, true);
                                ThemePages.Delete(theme, pageName, true);
                            }
                        }
                    }
                    catch (Exception exception)
                    {
                        new CSException(CSExceptionType.UnknownError,
                                        string.Format("Couldn't delete page from '{0}' embedded resource.", resourceName), exception)
                        .Log();
                    }
                });

                #endregion
            }
        }
        public void MapVersion2()
        {
            var xml   = EmbeddedResources.Get("ExtendedXmlSerializerTest.Resources.TestClassWithMapV2.xml");
            var klasa = Serializer.Deserialize <TestClassWithMap>(xml);

            Assert.Equal(klasa.NowyWezel, "test");
            Assert.Equal(klasa.ZmianaWartosci, "Stara");
            Assert.NotNull(klasa.PropClass);
            Assert.Equal(klasa.PropClass.Wartosc, 12);
            Assert.Equal(klasa.PropClass.Wezel1, "WartoscWezlas");
        }