コード例 #1
0
        public void Test_Constructor_ConfigurationNotGiven_ConfigurationIsSet()
        {
            // Assign
            // Act
            var sut = new NHibernateHelper();

            // Assert
            Assert.That(() => sut.Configuration, Is.InstanceOf<Configuration>());
        }
コード例 #2
0
        public void Test_Constructor_ConfigurationGiven_ConfigurationIsSame()
        {
            // Assign
            var configuration = new Configuration();

            // Act
            var sut = new NHibernateHelper(configuration);

            // Assert
            Assert.That(() => sut.Configuration, Is.SameAs(configuration));
        }