<commit_before>﻿namespace SharpStorm.Core.Tests
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using SharpStorm.Core.Tests.Spouts;

    [TestClass]
    public class TopologyBuilderTests
    {
        [TestMethod]
        public void GetUnknownSpoutAsNull()
        {
            TopologyBuilder builder = new TopologyBuilder();

            Assert.IsNull(builder.GetSpout("Unkown"));
        }

        [TestMethod]
        public void SetAndGetSimpleSpout()
        {
            TopologyBuilder builder = new TopologyBuilder();
            ISpout spout = new SimpleSpout();

            builder.SetSpout("Simple", spout);

            var result = builder.GetSpout("Simple");

            Assert.IsNotNull(result);
            Assert.AreSame(spout, result);
        }
    }<commit_msg>TopologyBuilder tests<commit_after>﻿namespace SharpStorm.Core.Tests
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using SharpStorm.Core.Tests.Spouts;

    [TestClass]
    public class TopologyBuilderTests
    {
        [TestMethod]
        public void GetUnknownSpoutAsNull()
        {
            TopologyBuilder builder = new TopologyBuilder();

            Assert.IsNull(builder.GetSpout("Unkown"));
        }

        [TestMethod]
        public void SetAndGetSimpleSpout()
        {
            TopologyBuilder builder = new TopologyBuilder();
            ISpout spout = new SimpleSpout(); 

            builder.SetSpout("Simple", spout);

            var result = builder.GetSpout("Simple");

            Assert.IsNotNull(result);
            Assert.AreSame(spout, result);
        }
    }
{'fraction_non_alphanumeric': 0.09135938359933957, 'fraction_numerical': 0.0, 'mean_word_length': 2.217699115044248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7582756', 'n_tokens_mistral': 505, 'n_tokens_neox': 488, 'n_words': 95}