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

namespace NSS_Koans_Tester
{
    [TestClass]
    public class Null : Koan
    {
        [TestMethod]
        public void AboutNullNullIsNotAnObject()
        {
            Assert.IsTrue(typeof(object).IsAssignableFrom(null)); //not everything is an object
        }

        [TestMethod]
        public void AboutNullCheckingThatAnObjectIsNull()
        {
            object obj = null;
            Assert.IsTrue(obj == FILL_ME_IN);
        }

        [TestMethod]
        public void AboutNullABetterWayToCheckThatAnObjectIsNull()
        {
            object obj = null;
            Assert.IsNull(FILL_ME_IN);
        }

        [TestMethod]
        public void AboutNullAWayNotToCheckThatAnObjectIsNull()
        {
            object obj = null;
            Assert.IsTrue(obj.Equals(null));
        }

    }
}<commit_msg>null finished<commit_after>﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NSS_Koans_Tester
{
    [TestClass]
    public class Null : Koan
    {
        [TestMethod]
        public void AboutNullNullIsNotAnObject()
        {
            Assert.IsTrue(typeof(object).IsAssignableFrom(null)); //not everything is an object
        }

        [TestMethod]
        public void AboutNullCheckingThatAnObjectIsNull()
        {
            object obj = null;
            Assert.IsTrue(obj == FILL_ME_IN);
        }

        [TestMethod]
        public void AboutNullABetterWayToCheckThatAnObjectIsNull()
            //Use this method to test if an objecct is null
        {
            object obj = null;
            Assert.IsNull(FILL_ME_IN);
        }

        [TestMethod]
        public void AboutNullAWayNotToCheckThatAnObjectIsNull()
            //Don't do this
        {
            object obj = null;
            Assert.IsTrue(obj == FILL_ME_IN);
        }

    }
}
{'fraction_non_alphanumeric': 0.07987388334209143, 'fraction_numerical': 0.0, 'mean_word_length': 1.9024390243902438, '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': '3595233', 'n_tokens_mistral': 548, 'n_tokens_neox': 537, 'n_words': 107}