Files
XCEngine/tests/RHI/D3D12/unit/test_command_list.cpp

16 lines
431 B
C++
Raw Normal View History

#include "fixtures/D3D12TestFixture.h"
TEST_F(D3D12TestFixture, CommandList_Placeholder) {
ASSERT_NE(GetCommandList(), nullptr);
}
TEST_F(D3D12TestFixture, CommandList_Close) {
HRESULT hr = GetCommandList()->Close();
ASSERT_HRESULT_SUCCEEDED(hr);
}
TEST_F(D3D12TestFixture, CommandList_GetDesc) {
D3D12_COMMAND_LIST_TYPE type = GetCommandList()->GetType();
EXPECT_EQ(type, D3D12_COMMAND_LIST_TYPE_DIRECT);
}