<commit_before>﻿using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Tests_GameFifteen.Logic.Tests_Frames
{
    /// <summary>
    /// Summary description for FrameTest
    /// </summary>
    [TestClass]
    public class FrameTest
    {
        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
       
        [TestMethod]
        public void TestMethod1()
        {
            
        }
    }
}<commit_msg>Frame tests Equals method<commit_after>﻿using System;
using System.Text;
using System.Collections.Generic;
using GameFifteen.Logic.Frames;
using GameFifteen.Logic.Frames.Contracts;
using GameFifteen.Logic.Tiles;
using GameFifteen.Logic.Tiles.Contracts;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Tests_GameFifteen.Logic.Tests_Frames
{
    /// <summary>
    /// Summary description for FrameTest
    /// </summary>
    [TestClass]
    public class FrameTest
    {
        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>

        [TestMethod]
        public void ExpectTrueEqualsMethodWhithTwoIframeTest()
        {
            TileFactory tileFactoryFirst = new NumberTileFactory();
            TileFactory tileFactorySecond = new NumberTileFactory();
            FrameBuilder frameBuilderFirst = new ClassicPatternFrameBuilder(tileFactoryFirst);
            FrameBuilder frameBuilderSecond = new ClassicPatternFrameBuilder(tileFactorySecond);
            var frameDirectorFirst = new FrameDirector(frameBuilderFirst);
            var frameDirectorSecond = new FrameDirector(frameBuilderSecond);
            var expectetFrameFirst = frameDirectorFirst.ConstructFrame(5, 5);
            var expectetFrameSecond = frameDirectorSecond.ConstructFrame(5, 5);
            bool result = expectetFrameFirst.Equals(expectetFrameSecond);
            Assert.IsTrue(result);

        }

        [TestMethod]
        public void ExpectTrueEqualsMethodWhithNullIframeTest()
        {
            TileFactory tileFactoryFirst = new NumberTileFactory();
            FrameBuilder frameBuilderFirst = new ClassicPatternFrameBuilder(tileFactoryFirst);
            var frameDirectorFirst = new FrameDirector(frameBuilderFirst);
            var expectetFrameFirst = frameDirectorFirst.ConstructFrame(5, 5);
            IFrame expectetFrameSecond = null;
            bool result = expectetFrameFirst.Equals(expectetFrameSecond);
            Assert.IsFalse(result);

        }

    }
}
{'fraction_non_alphanumeric': 0.07928862541682105, 'fraction_numerical': 0.002593553167839941, 'mean_word_length': 2.7241379310344827, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4735670', 'n_tokens_mistral': 691, 'n_tokens_neox': 657, 'n_words': 160}