예제 #1
0
        public void ParameterDatabaseLoadRemove()
        {
            ParameterDatabase db     = ParameterDatabase.GetInstance();
            ParameterSource   source = new MockParameterSource();

            db.Add(source);
            Assert.AreEqual(source.Parameters.Count, db.Parameters.Count);
            db.Remove(source);
            Assert.AreEqual(0, db.Parameters.Count);
        }
예제 #2
0
        public void InternalLogProfileNoParameters()
        {
            ParameterDatabase   database = ParameterDatabase.GetInstance();
            MockParameterSource source   = new MockParameterSource();

            database.Add(source);

            LogProfile         publicProfile   = LogProfile.CreateInstance();
            InternalLogProfile internalProfile = InternalLogProfile.GetInstance(publicProfile, database);

            Assert.AreEqual(0, internalProfile.Addresses.Count);
        }
예제 #3
0
        public void InternalLogProfileMockParameters()
        {
            ParameterDatabase   database = ParameterDatabase.GetInstance();
            MockParameterSource source   = new MockParameterSource();

            database.Add(source);

            LogProfile publicProfile = LogProfile.CreateInstance();

            publicProfile.Add(database.Parameters[0], database.Parameters[0].Conversions[0]);
            publicProfile.Add(database.Parameters[1], database.Parameters[1].Conversions[0]);
            InternalLogProfile internalProfile = InternalLogProfile.GetInstance(publicProfile, database);

            Assert.AreEqual(0, internalProfile.Addresses.Count);
            Assert.AreEqual(2, internalProfile.LogEventArgs.Row.Columns.Count);
        }