Sha256: 6d91efc5d7959cc9021a89dedad8593c0b12fdec6a0e442195d6e636b0915ee0

Contents?: true

Size: 595 Bytes

Versions: 3

Compression:

Stored size: 595 Bytes

Contents

require File.dirname(__FILE__) + "/../test_helper"

class FrameStatsProxyTest < Test::Unit::TestCase
	
	should "wrap Ogre::FrameStats into our own FrameStatsProxy" do
		stats = window.get_statistics
		assert_not_nil stats
		assert stats.is_a?(FrameStatsProxy)		
	end

	should "have certain methods for accessing render stats" do
		stats = FrameStatsProxy.new window

		%w(
			last_fps
			avg_fps
			best_fps
			worst_fps	
			best_frame_time
			worst_frame_time
			triangle_count
			batch_count
		).each do |method|
			assert stats.respond_to?(method)
		end
	end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ogre.rb-0.2-i686-linux test/unit/frame_stats_proxy_test.rb
ogre.rb-0.2-i386-mswin32 test/unit/frame_stats_proxy_test.rb
ogre.rb-0.2-x86_64-linux test/unit/frame_stats_proxy_test.rb