Skip to content

Commit

Permalink
Update .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Feb 20, 2025
1 parent c0591b5 commit f454ae8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ src/xtd.forms/include/xtd/forms_export.hpp
src/xtd.forms/properties/assembly_info.cpp
src/xtd.tunit/include/xtd/tunit_export.hpp
src/xtd.tunit/properties/assembly_info.cpp
tests/xtd.drawing.unit_tests/properties/resources.hpp
tools/guidgen/properties/assembly_info.cpp
tools/guidgen-gui/properties/assembly_info.cpp
tools/guidgen-gui/properties/startup.cpp
Expand All @@ -107,4 +108,3 @@ tools/xtdc/properties/resources.hpp
tools/xtdc-gui/properties/assembly_info.cpp
tools/xtdc-gui/properties/startup.cpp
tools/xtdc-gui/properties/settings.hpp

32 changes: 31 additions & 1 deletion tests/xtd.core.manual_tests/src/manual_tests.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@
#include <xtd/xtd>

using namespace xtd::drawing;

namespace manual_tests {
class program static_ {
public:
static auto main(const auto& args) {
console::write_line("Hello, world!");
//console::write_line("Hello, world!");
foreach_(auto color, colors::get_colors()) {
println(" void test_method_({}) {{", color.name());
println(" auto c = colors::{}();", color.name());
println(" ");
println(" assert::are_equal(colors::{}(), c);", color.name());
println(" assert::are_equal(color::from_known_color(known_color::{}), c);", color.name());
println(" assert::are_not_equal(color(), c);");
println(" assert::are_not_equal(color::empty, c);");
println(" ");
println(" assert::are_equal(0x{:X2}, c.a());", color.a());
println(" assert::are_equal(0x{:X2}, c.r());", color.r());
println(" assert::are_equal(0x{:X2}, c.g());", color.g());
println(" assert::are_equal(0x{:X2}, c.b());", color.b());
println(" assert::are_equal(0, c.handle());");
println(" assert::are_equal(\"{}\", c.name());", color.name());
println(" ");
println(" assert::are_equal(\"color [{}]\", c.to_string());", color.name());
println(" ");
println(" assert::is_false(c.is_empty());");
println(" assert::is_true(c.is_known_color());");
println(" assert::is_false(c.is_system_color());");
println(" assert::is_true(c.is_named_color());");
println(" ");
println(" assert::are_equal(0x{:X8}, c.to_argb());", color.to_argb());
println(" assert::are_equal(known_color::{}, c.to_known_color());", color.name());
println(" }}");
println(" ");
}
}
};
}
Expand Down

0 comments on commit f454ae8

Please sign in to comment.