- Move test_*.cpp and fixtures/ to tests/RHI/D3D12/unit/ - Create unit/CMakeLists.txt with proper test configuration - Simplify parent CMakeLists.txt to use add_subdirectory - Integration tests remain in integration/ folder
16 lines
431 B
C++
16 lines
431 B
C++
#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);
|
|
}
|