コード例 #1
0
		public void Correctly_determines_rebuild_actions()
		{
			IDatabaseActionResolver resolver = new DatabaseActionResolver();

			IEnumerable<DatabaseAction> actions = resolver.GetActions(RequestedDatabaseAction.Rebuild);
			EnumerableAssert.That(actions, Is.EqualTo(new DatabaseAction[] { DatabaseAction.Drop, DatabaseAction.Create, DatabaseAction.Update }));
		}
コード例 #2
0
		public void Correctly_determines_drop_actions()
		{
			IDatabaseActionResolver resolver = new DatabaseActionResolver();

			IEnumerable<DatabaseAction> actions = resolver.GetActions(RequestedDatabaseAction.Drop);
			EnumerableAssert.That(actions, Is.EqualTo(new DatabaseAction[] { DatabaseAction.Drop }));
		}