<commit_before>﻿using System;
using System.Linq;
using AppGet.InstalledPackages;
using AppGet.Serialization;
using FluentAssertions;
using NUnit.Framework;

namespace AppGet.Tests.InstalledPackages
{
    public class WindowsInstallerInventoryManagerFixture : TestBase<WindowsInstallerInventoryManager>
    {
        [Test]
        public void should_get_uninstall_records()
        {
            var records = Subject.GetInstalledApplications().OrderBy(c => c.Name).ToList();

            //            var sq = records.Where(c => c.InstallMethod == InstallMethodTypes.Squirrel).ToList();


            foreach (var r in records.OrderBy(c => c.Version))
            {


                Console.WriteLine($"{r.Version}  <|> {r.Name}");
                //                var c = DateTime.TryParse(r, out var d);
                //                if (c)
                //                {
                //                    Console.WriteLine(d);
                //                }
                //                else
                //                {
                //                    Console.WriteLine("bad: "+ r);
                //                }
            }

            records.Should().NotBeEmpty();
        }

        [TestCase("Node", Category = "Local")]
        [TestCase("VLC", Category = "Local")]
        [TestCase("discord", Category = "Local")]
        [TestCase("slack", Category = "Local")]
        [TestCase("Chrome", Category = "Local")]
        public void should_find_install_record(string name)
        {
            var apps = Subject.GetInstalledApplications(name);<commit_msg>removed bad tests<commit_after>﻿using System;
using System.Linq;
using AppGet.InstalledPackages;
using AppGet.Serialization;
using FluentAssertions;
using NUnit.Framework;

namespace AppGet.Tests.InstalledPackages
{
    public class WindowsInstallerInventoryManagerFixture : TestBase<WindowsInstallerInventoryManager>
    {
        [Test]
        public void should_get_uninstall_records()
        {
            var records = Subject.GetInstalledApplications().OrderBy(c => c.Name).ToList();

            //            var sq = records.Where(c => c.InstallMethod == InstallMethodTypes.Squirrel).ToList();


            foreach (var r in records.OrderBy(c => c.Version))
            {


                Console.WriteLine($"{r.Version}  <|> {r.Name}");
                //                var c = DateTime.TryParse(r, out var d);
                //                if (c)
                //                {
                //                    Console.WriteLine(d);
                //                }
                //                else
                //                {
                //                    Console.WriteLine("bad: "+ r);
                //                }
            }

            records.Should().NotBeEmpty();
        }

        [TestCase("VLC", Category = "Local")]
        [TestCase("slack", Category = "Local")]
        public void should_find_install_record(string name)
        {
            var apps = Subject.GetInstalledApplications(name);
{'fraction_non_alphanumeric': 0.11326860841423948, 'fraction_numerical': 0.0, 'mean_word_length': 1.4091971940763834, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2772492', 'n_tokens_mistral': 805, 'n_tokens_neox': 751, 'n_words': 140}